22.12.2010, 05:20
pawn Код:
// Top of script
new pClass[ MAX_PLAYERS ]; // Adjust accordingly
public OnPlayerRequestSpawn( playerid )
{
if( pClass[ playerid ] == 6 )
{
if( GetPlayerScore( playerid ) < 500 )
{
SendClientMessage( playerid, 0xFFFFFFFF, "You have to have at least 500 score to be a police officer!" );
return 0;
}
}
return 1;
}
public OnPlayerRequestClass( playerid, classid )
{
pClass[ playerid ] = classid;
return 1;
}