SA-MP Forums Archive
team commands - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: team commands (/showthread.php?tid=430365)



team commands - icko202 - 13.04.2013

How can i made when someone is in team police when type /commands to show only police commands if its in team mafia only mafia commands?


Re: team commands - IstuntmanI - 13.04.2013

https://sampwiki.blast.hk/wiki/SetPlayerTeam
https://sampwiki.blast.hk/wiki/GetPlayerTeam

pawn Код:
if( GetPlayerTeam( playerid ) == TEAM_POLICE )
{
   // police commands
}
else if( GetPlayerTeam( playerid ) == TEAM_MAFIA )
{
   // mafia commands
}



Re: team commands - icko202 - 13.04.2013

thanks alot