CMD:szoli(playerid, params[]){ if(GetPlayerScore(playerid) >= 150) { new name[MAX_PLAYER_NAME], string[128]; SetPlayerPos(playerid, 1177.3818,-1323.0188,14.0679); // Ide írd a kordinátát! SetPlayerSkin(playerid, 275); SetPVarInt(playerid, \"Szolgalat\", 1); SetPVarInt(playerid, \"Mento\", 1); SetPlayerColor(playerid, 0xadad2fAA); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"%s(%d) Mentõ szolgálatba állt!Mentõ hívás: /104\", name, playerid); SendClientMessageToAll(0x33AA33AA, string); } else SendClientMessage(playerid, 0xFF0000AA, \"Még tapasztalatlan vagy!(Minimum 150 pont)\"); return 1;}CMD:szolioff(playerid, params[]){ if(GetPlayerScore(playerid) >= 150) { new name[MAX_PLAYER_NAME], string[128]; SetPVarInt(playerid, \"Szolgalat\", 0); SetPVarInt(playerid, \"Mento\", 0); SetPlayerColor(playerid, 0x249c06AA); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"%s(%d) Kilépett a szolgálatból.\", name, playerid); SendClientMessageToAll(0x33AA33AA, string); } return 1;}CMD:gyogyit(playerid, params[]){ if(!GetPVarInt(playerid, \"Mento\")) SendClientMessage(playerid, 0xFF0000AA, \"Nem vagy mentõs!\"); new PID, Float:hp; if(sscanf(params, \"u\", PID)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /heal <ID/Játékosnév>\"); if(PID == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Rossz ID/Név\"); if(playerid == PID) return SendClientMessage(playerid, 0xFF0000AA, \"Magadanak nem töltheted fel az életedet!\"); if(!IsPlayerInRangeOfPlayer(playerid, PID, 3.0)) return SendClientMessage(playerid, 0xFF0000AA, \"Nem vagy elég közel a megadott játékoshoz!\"); GetPlayerHealth(PID, hp); if(hp >= 100) return SendClientMessage(playerid, 0xFF0000AA, \"A játékos nincs megsérülve!\"); SetPlayerHealth(PID, 100); GivePlayerMoney(playerid, 4000); SendClientMessage(playerid, 0xFF0000AA, \"Sikeres ellátás!\"); SetPlayerScore(playerid, GetPlayerScore(playerid) +2); return 1;}CMD:104(playerid, params[]){new name[MAX_PLAYER_NAME], string[128]; GetPlayerPos(playerid, V, V1, V2);GetPlayerName(playerid, name, MAX_PLAYER_NAME);format(string, sizeof(string), \"%s(%d) Hívta a mentõket!\", name, playerid);SendClientMessageToAll(0x33CCFFAA, string);SetPlayerColor(playerid, 0xbb0ee6AA);for GetPVarInt(playerid, \"Szolgalat\")return 1;}
SendClientMessage(playerid, GetPlayerColor(playerid), \"0xAA3333AA\");
format(string, sizeof(string), \"%s(%d) Mentõ szolgálatba állt!Mentõ hívás: /104\", name, playerid);[/quote]Remélem jó lesz, ha nem akkor elnézést kérek de azért még próbálgatom mivel kezdõ scripter vagyok
CMD:104(playerid, params[]){new name[24], string[128];GetPlayerName(playerid, name, 24);format(string, sizeof(string), \"%s(%d) Hívta a mentõket!\", name, playerid);SendClientMessageToAll(0x33CCFFAA, string)for(new i; i<MAX_PLAYERS; i++) if(GetPVarInt(playerid, \"Szolgalat\")) ShowPlayerMarkerForPlayer(i, playerid, 0xbb0ee6AA);return 1;}