how to filter some checkpoints - 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: how to filter some checkpoints (
/showthread.php?tid=431284)
how to filter some checkpoints -
dash5487 - 17.04.2013
hey , how i can put a filter if player a cop and if he in checkpoint so its ok with that
Код:
dcmd_rob(playerid,params[])
{
if(gTeam[playerid] == TEAM_COP)
{
if (CheckpointID(playerid) == checkpoint1) return 0;// ?// i want allow this to team cop how do i ?
SendClientMessage(playerid,COLOR_RED,"Only Citizen Can Do it.");
}
return 1;
}
//and under this command and if statement a lots of code i for forgot to put to each checkpoint that if statement
Re: how to filter some checkpoints -
Jack_Ryder - 17.04.2013
show me the check point