isnotinbox
#1

is thiere a function like isnotinbox ? plz tell me
Reply
#2

http://forum.sa-mp.com/index.php?top...2304#msg622304
Here is function IsPlayerInBox. When you're going to use it, just use it like:
pawn Код:
if(!IsPlayerInBox(..
Reply
#3

ok thx now i tried it but if i'm in box , or not , every 1 sec is give me test message!
pawn Код:
//up
forward Sumo(playerid);
//in tele
SetTimer("Sumo",1000,1);
//down
public Sumo(playerid)
{
if(!IsPlayerInBox(playerid,-391.9988,-476.2663,2553.0342,2461.8596,120.8335,160.8335)){
SendClientMessage(playerid,ORANGE,"test");
}
plz help
Reply
#4

knows somebody?
Reply
#5

don't like to do triple post but somebody must know
Reply
#6

Quote:
Originally Posted by Serediucr
ok thx now i tried it but if i'm in box , or not , every 1 sec is give me test message!
Of course it does, you're using every_second_timer.
Reply
#7

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Serediucr
ok thx now i tried it but if i'm in box , or not , every 1 sec is give me test message!
Of course it does, you're using every_second_timer.
i want that message when i'm not in the box , but gives me everywhere!!!
Reply
#8

Quote:
Originally Posted by Serediucr
Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Serediucr
ok thx now i tried it but if i'm in box , or not , every 1 sec is give me test message!
Of course it does, you're using every_second_timer.
i want that message when i'm not in the box , but gives me everywhere!!!
Think it works the same as isplayerinarea, the XYZ have to be in the right order, something like the southern edge of the box needs to be first?
Reply
#9

Lol... his Z cords are 120 to 160 ..... only if he flies, then the message will stop ... lol
Reply
#10

Quote:
Originally Posted by Serediucr
ok thx now i tried it but if i'm in box , or not , every 1 sec is give me test message!
pawn Код:
//up
forward Sumo(playerid);
//in tele
SetTimer("Sumo",1000,1);
//down
public Sumo(playerid)
{
if(!IsPlayerInBox(playerid,-391.9988,-476.2663,2553.0342,2461.8596,120.8335,160.8335)){
SendClientMessage(playerid,ORANGE,"test");
}
plz help
Here you are missing a bracket

pawn Код:
//up
forward Sumo(playerid);
//in tele
SetTimer("Sumo",1000,1);
//down
public Sumo(playerid)
{
if(!IsPlayerInBox(playerid,-391.9988,-476.2663,2553.0342,2461.8596,120.8335,160.8335))
{
SendClientMessage(playerid,ORANGE,"test");
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)