Quote:
Originally Posted by [MG]Trotty
pawn Код:
public OnPlayerRequestSpawn(playerid) {
if(gTeam[playerid] == CLASS_MERC || GetPlayerScore(playerid) < 100){SendClientMessage(playerid, RED, "[ATT]:You Must Have Atleast 100 Score To Be A Mercenary Class!"); } return 1; } return 0; }
I just tryed it in my script and it worked ok ![Smiley](images/smilies/smile.png)
|
I think it didn't, you had the brackets wrong and the returns at the opposite places
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(gTeam[playerid] == CLASS_MERC && GetPlayerScore(playerid) < 100)
{
SendClientMessage(playerid, RED, "[ATT]:You Must Have Atleast 100 Score To Be A Mercenary Class!");
return 0;
}
return 1;
}