13.07.2012, 11:52
Don't forget the score enumerator.
Switch the returns around.
pawn Код:
enum pInfo
{
pScore[playerid],
// Etc.
}
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 284 || GetPlayerSkin(playerid) == 286 || GetPlayerSkin(playerid) == 288)
{
if(GetPlayerScore(playerid) > 100)
{
GameTextForPlayer(playerid,"~r~~h~100~b~score needed!",3000,3);
SendClientMessage(playerid,red,"» You need at least "lgrey"100"lred" score to be a cop!");
return 1;
}
}
return 0;
}