01.12.2014, 18:51
pawn Код:
if ( gTeam[ playerid ] == TEAM_SWAT )
{
if(pInfo[playerid][pSwat] < 1 )
{
SendClientMessage(playerid, RED, "You are not authorised to use this skin");
return 0;
}
}
if ( gTeam[ playerid ] == TEAM_ARMY )
{
if(pInfo[playerid][pArmy] < 1 )
{
SendClientMessage(playerid, RED, "You are not authorised to use this skin");
return 0;
}
}
Also if you have problems with something you don't need to open new topic just take a look at the WIKI: https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn see it says there that if you return 0; that the player will not spawn.