[Help] Checking - 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: [Help] Checking (
/showthread.php?tid=466769)
[Help] Checking -
AlmirDelic - 29.09.2013
Hi,
Whether there is a command that looks at whether if I'm in the car?
Re: [Help] Checking - Patrick - 29.09.2013
Can you explain a little bit better? or show us a picture? that might help us even more better.
Re: [Help] Checking -
AlmirDelic - 29.09.2013
If the car is in my radius of 3, if you had a command?
Re: [Help] Checking -
Tropicali - 29.09.2013
Do you mean is there a command which you type and then it tells you if you're in a vehicle or not?
pawn Код:
if(strcmp(cmdtext, "/carcheck", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid, -1, "You are in a vehicle.");
return 1;
}
}
return 0;
}