06.01.2018, 20:10
When I put a restriction on player request spawn for the FBI class I get the error message but I'm still able to spawn as FBI.
Код:
public OnPlayerRequestSpawn(playerid) { if(gTeam[playerid] == FBI && GetPlayerCop(playerid, pInfo[playerid][Cop]) < 100) return SendClientMessage(playerid, COLOR_RED,"You need 100 cop skills to spawn as F.B.I "); return 1; }
Код:
GetPlayerCop(playerid, score) { GetPlayerScore(playerid, pInfo[playerid][Cop]); return 1; }