help 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help please (
/showthread.php?tid=159737)
help please -
iJumbo - 14.07.2010
how to detect isplayerNOTinrangeofpoint?
liek this
pawn Код:
if(!strcmp("/stadium",cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
{
SendClientMessage(playerid,0xFFFFFFFF,"You are near the Stadium entrance!");
}
else if(IsplayeNOTingangeofpoint(playerid);
{
SendClientMessage(playerid,0xFFFFFFFF,"you are not near the stadium");
}
return 1;
}
Re: help please -
ToPhrESH - 14.07.2010
Just use
pawn Код:
else
{
SendClientMessage(playerid,0xFFFFFFFF,"you are not near the stadium");
}
Re: help please -
oliverrud - 14.07.2010
Just add a ! at the start of IsPlayerInRangeOfPoint example !IsPlayerInRangeOfPoint()
Also in that code you can just have it like this:
pawn Код:
if(!strcmp("/stadium",cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
{
SendClientMessage(playerid,0xFFFFFFFF,"You are near the Stadium entrance!");
}
else
{
SendClientMessage(playerid,0xFFFFFFFF,"you are not near the stadium");
}
return 1;
}