Auto gate
#1

HELP! im so annoyed i cant understand!!!!!!
Код:
if(IsPlayerInRangeOfPoint(playerid, 1497.13, 1508.89, 9.83))
       MoveObject(object,1587.690,-1437.827,4.755, 2.50);
       SetTimer("close", 7000, 0);//gate will be  closed for 7 seconds
       SendClientMessage(playerid,COLOR_LGREEN,"You are opening a Gate, and will be closed automaticly..");
       PlayerPlaySound(playerid,1153,0.0,0.0,0.0);
       }else{
       SendClientMessage(playerid, COLOR_RED, "You anrt near the gate");
       return 1;
	}
but he opens even if im space and always says server unknowned command -.-' HELP!!!!


_______________________
[GDZ]leader


expertprogrammer please dont post!
Reply
#2

try this:

pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 1497.13, 1508.89, 9.83)) return SendClientMessage(playerid, COLOR_RED, "You aren't near the gate");
MoveObject(object,1587.690,-1437.827,4.755, 2.50);
SetTimer("close", 7000, 0);//gate will be  closed for 7 seconds
SendClientMessage(playerid,COLOR_LGREEN,"You are opening a Gate, and will be closed automaticly..");
PlayerPlaySound(playerid,1153,0.0,0.0,0.0);
return 1;
}
Reply
#3

nop didnt work D:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)