CMD:police(playerid, params[]) //Belép Rendõr Munkába..{ if(gTeam[playerid] == TEAM_CIVILIAN) { GetPlayerName(playerid, name, sizeof (name)); format(stringasas, sizeof(stringasas), \"{FFFF00}%s {00ff00}Beállt Rendõrnek \", name); SendClientMessageToAll(0x00ff00ff, stringasas); SetPlayerArmour(playerid, 100); gTeam[playerid] = TEAM_POLICE; ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 50); GivePlayerWeapon(playerid, 3, 1); new randomskin = random(5); if(randomskin == 0) { SetPlayerSkin(playerid,281); } if(randomskin == 1) { SetPlayerSkin(playerid,280); } if(randomskin == 2) { SetPlayerSkin(playerid,282); } if(randomskin == 3) { SetPlayerSkin(playerid,283); } if(randomskin == 4) { SetPlayerSkin(playerid,284); } {SetPlayerPos(playerid,2233.2813,2454.3296,10.8295);} } else { SendClientMessage(playerid, 0xFF0606FF, \"Elõször lépj ki a mostani munkádból! (/quitjob)\"); } return 1; }
CMD:police(playerid, params[]) //Belép Rendõr Munkába..{ new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); if(!strcmp(pName,\"Electro\",true))return SendClientMessage(playerid,-1,\"Te nem állhatsz be\"); if(gTeam[playerid] == TEAM_CIVILIAN) { GetPlayerName(playerid, name, sizeof (name)); format(stringasas, sizeof(stringasas), \"{FFFF00}%s {00ff00}Beállt Rendõrnek \", name); SendClientMessageToAll(0x00ff00ff, stringasas); SetPlayerArmour(playerid, 100); gTeam[playerid] = TEAM_POLICE; ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 50); GivePlayerWeapon(playerid, 3, 1); new randomskin = random(5); if(randomskin == 0) { SetPlayerSkin(playerid,281); } if(randomskin == 1) { SetPlayerSkin(playerid,280); } if(randomskin == 2) { SetPlayerSkin(playerid,282); } if(randomskin == 3) { SetPlayerSkin(playerid,283); } if(randomskin == 4) { SetPlayerSkin(playerid,284); } {SetPlayerPos(playerid,2233.2813,2454.3296,10.8295);} } else { SendClientMessage(playerid, 0xFF0606FF, \"Elõször lépj ki a mostani munkádból! (/quitjob)\"); } return 1; }