SA-MP Forums Archive
if not - 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: if not (/showthread.php?tid=152913)



if not - Ihsan_Cingisiz - 06.06.2010

Hello, i'm making a license system but i want it if
the player is somewhere else that he get a message.

I use this script :
Quote:

if(IsPlayerInRangeOfPoint(playerid, 5.0,1642,2993,-2332.3384,13.5469))
{
SendClientMessage(playerid, COLOR_RED, "[P-RP]: You are not at the DMV");
return 1;
}

I tried this '!' but it won't work :S
Quote:

if(!IsPlayerInRangeOfPoint(playerid, 5.0,1642,2993,-2332.3384,13.5469))
{
SendClientMessage(playerid, COLOR_RED, "[P-RP]: You are not at the DMV");
return 1;
}




Re: if not - chaosnz - 06.06.2010

if(IsPlayerInRangeOfPoint(playerid, 5.0,1642,2993,-2332.3384,13.5469))
{
put your dmv coding in here
} else return SendClientMessage(playerid, COLOR_RED, "[P-RP]: You are not at the DMV");
return 1;
}