01.12.2014, 18:37
Hey,
I'm trying to lock the SWAT and Army skin to people with SWAT/Army level 1 or above (saved in the MySQL)
That is under OnPlayerRequestSpawn, I added the SetPlayerHealth because it would just send a message once you've spawned.
I'm trying to set it so that if you don't have a SWAT/Army level it wont let you spawn when you click the 'Spawn' button when your choosing a player skin/class, it will send you a message saying you can't use it and it wont let you spawn. (Wont spawn the player) How could I add this?
Thanks
I'm trying to lock the SWAT and Army skin to people with SWAT/Army level 1 or above (saved in the MySQL)
pawn Код:
if ( gTeam[ playerid ] == TEAM_SWAT )
{
if(pInfo[playerid][pSwat] < 1 )
{
SendClientMessage(playerid, RED, "You are not authorised to use this skin");
SetPlayerHealth(playerid, 0);
}
}
if ( gTeam[ playerid ] == TEAM_ARMY )
{
if(pInfo[playerid][pArmy] < 1 )
{
SendClientMessage(playerid, RED, "You are not authorised to use this skin");
SetPlayerHealth(playerid, 0);
}
}
I'm trying to set it so that if you don't have a SWAT/Army level it wont let you spawn when you click the 'Spawn' button when your choosing a player skin/class, it will send you a message saying you can't use it and it wont let you spawn. (Wont spawn the player) How could I add this?
Thanks