if(strcmp(cmd, \"/gotocar\", true) == 0){ if(IsPlayerConnected(playerid)){ if(PlayerInfo[playerid][pAdmin] >= 1337) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, \"SZERVER: /gotocar [jármûID]\"); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING) { SendClientMessage(playerid, COLOR_GREY, \" You can not do that while spectating !\"); return 1; } new vehid = strvalEx(tmp); new Float:vX, Float:vY, Float:vZ; GetVehiclePos(vehid, vX, vY, vZ); SetPlayerPos(playerid, vX, vY, vZ+3); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 999; PlayerInfo[playerid][pVirtualWorld] = 0; GameTextForPlayer(playerid, \"~w~Elteleportált\", 5000, 1); } else { SendClientMessage(playerid, COLOR_GRAD1, \"Nem vagy admin!\"); }}return 1;}
if(strcmp(cmd, \"/aszoli\", true) == 0){ if(PlayerInfo[playerid][pAdmin] >= 2) { GetPlayerName(playerid, sendername, sizeof(sendername)); SetPlayerHealth(playerid, 99999999); SetPlayerArmour(playerid, 99999999); SendClientMessage(playerid, COLOR_YELLOW, \"Admin szolgálatba léptél!\"); format(string, sizeof(string), \"%s Admin zsolgálatba lépett! \", sendername); SendClientMessageToAll(COLOR_YELLOW, string); SetPlayerColor(playerid, COLOR_WHITE); } return 1;}
if(strcmp(cmd, \"/gotocar\", true) == 0){ //ide beírod hogyha adminszolgálatban van,szóval például: if(adminszolgalatban[playerid] == 1) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1337) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, \"SZERVER: /gotocar [jármûID]\"); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING) { SendClientMessage(playerid, COLOR_GREY, \" You can not do that while spectating !\"); return 1; } new vehid = strvalEx(tmp); new Float:vX, Float:vY, Float:vZ; GetVehiclePos(vehid, vX, vY, vZ); SetPlayerPos(playerid, vX, vY, vZ+3); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 999; PlayerInfo[playerid][pVirtualWorld] = 0; GameTextForPlayer(playerid, \"~w~Elteleportált\", 5000, 1); } else { SendClientMessage(playerid, COLOR_GRAD1, \"Nem vagy admin!\"); } }}else{ SendClientMessage(playerid,-1,\"Nem vagy adminszolgálatban\");}return 1;}
if(strcmp(cmd, \"/aszoli\", true) == 0){if(PlayerInfo[playerid][pAdmin] >= 2)if(adminszolgalatban[playerid] == 0){ GetPlayerName(playerid, sendername, sizeof(sendername)); SetPlayerHealth(playerid, 99999999); SetPlayerArmour(playerid, 99999999); SendClientMessage(playerid, COLOR_YELLOW, \"Admin szolgálatba léptél!\"); format(string, sizeof(string), \"%s Admin zsolgálatba lépett! \", sendername); SendClientMessageToAll(COLOR_YELLOW, string); SetPlayerColor(playerid, COLOR_WHITE); adminszolgalatban[playerid] = 1;}else{ //ide az adatait ha kilép adminszolgálatból adminszolgalatban[playerid] = 0;}return 1;}
new adminszolgalatban[MAX_PLAYER_NAME];