SA-MP Forums Archive
noob question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: noob question (/showthread.php?tid=189344)



noob question - Francesco_Totti - 11.11.2010

how create a gate which opened only for cops(pd/fbi/ng)?


Re: noob question - HrvojeCro - 11.11.2010

pawn Код:
#define TEAM_CIV 0
#define TEAM_PD 1
#define TEAM_FBI 2

if(strcmp(cmdtext, "/opengate1", true, 10) == 0)
{
if(gTeam[playerid] == 1 && gTeam[playerid] == 2)
{
MoveObject(.....);
SendClientMessage(playerid, color, "Gates are opening...");
}
else
{
SendClientMessage(playerid, coloe, "Youre not FBI/PD");
}
}



Re: noob question - Francesco_Totti - 11.11.2010

thanks a lot


Re: noob question - HrvojeCro - 11.11.2010

Quote:
Originally Posted by Francesco_Totti
Посмотреть сообщение
thanks a lot
no problem