cant match the acess to the checkpoints.Please - 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: cant match the acess to the checkpoints.Please (
/showthread.php?tid=426968)
cant match the acess to the checkpoints.Please -
Rafael_Rodgers - 30.03.2013
hey, i want to when a cop enter the checkpoint happens something i know, but i cant match the if isacop or if isaterrorist...
help me or teach me how to do it.
thanks, i will +rep
Код:
public OnPlayerEnterCheckpoint(playerid)
{
if gTeam[playerid] = POLICE
{
SetPlayerCheckpoint(playerid, -1632.6051, 653.5886, -5.5494, 3.0);
return 1;
}
if gTeam[playerid] = TERRORIST
{
SetPlayerCheckpoint(playerid, -1476.3080, 430.1486, 6.1100, 3.0);
return 1;
}
/* GivePlayerMoney(playerid, 100);
DisablePlayerCheckpoint(playerid);
*/
return 1;
}
Re: cant match the acess to the checkpoints.Please -
Private200 - 30.03.2013
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(gTeam[playerid] == POLICE)
{
SetPlayerCheckpoint(playerid, -1632.6051, 653.5886, -5.5494, 3.0);
return 1;
}
if(gTeam[playerid] == TERRORIST)
{
SetPlayerCheckpoint(playerid, -1476.3080, 430.1486, 6.1100, 3.0);
return 1;
}
That shall be fine.