18.04.2015, 17:27
PHP код:
#include <EasyNames>
public OnPlayerRequestSpawn(playerid)
{
switch (gTeam[playerid]) {
case TEAM_CIA : if( (PlayerNameContains(playerid, "[CIA]") == 0) return SendClientMessage(playerid,0xFF8000C8,"You are not a member of the Central Intelligence Agency! Choose another class."),ForceClassSelection(playerid);
case TEAM_ED : if( (PlayerNameContains(playerid, "[ED]") == 0) return SendClientMessage(playerid,0xFF8000C8,"You are not a member of the Electric Drifters! Choose another class."),ForceClassSelection(playerid);
}
return 1;
}