how make if you not on checkpoint u cnt use a command? - 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 make if you not on checkpoint u cnt use a command? (
/showthread.php?tid=455454)
how make if you not on checkpoint u cnt use a command? -
UserName31 - 01.08.2013
i trying to make if player is not in check point the cant do /cigars
PHP код:
cmd(cigars21, playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2695.6880, -1704.6300, 11.8438))
if else { SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
return 1;
}
return 1;
}
but keep getting this problem
PHP код:
C:\Users\yahaira\Desktop\CNR 0.3X\gamemodes\1.2.pwn(4928) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: how make if you not on checkpoint u cnt use a command? -
DeMoX - 01.08.2013
it's not
It is
Re: how make if you not on checkpoint u cnt use a command? -
park4bmx - 01.08.2013
pawn Код:
cmd(cigars21, playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 3.0, 2695.6880, -1704.6300, 11.8438)) return SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
return 1;
}
Re: how make if you not on checkpoint u cnt use a command? -
UserName31 - 01.08.2013
Quote:
Originally Posted by DeMoX
|
Quote:
Originally Posted by park4bmx
pawn Код:
cmd(cigars21, playerid, params[]) { if(!IsPlayerInRangeOfPoint(playerid, 3.0, 2695.6880, -1704.6300, 11.8438)) return SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!"); return 1; }
|
Thanks alot both works and i going give u thanks positive feed back really helped alot