Posts: 1,018
Threads: 320
Joined: Jul 2010
Hello I was made for my job 6 fields and how can I in command /drugput make if I near in point of that 6 fields then it says you put the drug on field 1 etc I have all of that I just need this if I near of that some 6 fields.
Posts: 1,241
Threads: 67
Joined: Dec 2013
Posts: 1,018
Threads: 320
Joined: Jul 2010
I was make this and the problem iss I was near bank and I enter /drugput and it says you are put drug on field 1 but the problem is I was away from field and this not supose to happen.
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid,1.0,880.7999,-33.7000,60.7000)) this is x y z cordinates of first field and when I type /drugput when I won't near field then nothing happen but if I near field 1 then it send me a message etc..
{
you are put drug into field 1
}
Posts: 1,241
Threads: 67
Joined: Dec 2013
In place of Message do your code, It simply work like this, If a player is in this point, He can do this, If he is not, He can't.
Posts: 1,018
Threads: 320
Joined: Jul 2010
this doesn't work I type /drugput everywhere and it send me a message I want just send a message when player only type command near that field. Do I use ! or without it
Posts: 1,241
Threads: 67
Joined: Dec 2013
pawn Код:
if(IsPlayerInRangeOfPoint
Posts: 1,018
Threads: 320
Joined: Jul 2010
Know I type /drugput when I was near bank or somewhere far away from field 1 and nothing happens which is fine know is the problem I stand near field 1 and type drugput and nothing happens