19.05.2012, 19:29
So i was Creating Simple Gates for a faction and i wanted to make that they can only open it near that distance So i made it But it still says You have opendt the door , how can i make it say You are not near this Gate
The lines
The lines
PHP код:
if(strcmp(cmd,"/Yamao2",true)==0)
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
MoveDynamicObject(rallon4, 658.40002441406, -1226.6999511719, 22.39999961853, 1.5);
SetTimer("GateCloseBMS", 8000, 0);
format(string, sizeof(string), "* %s takes his/her remote and opens the gate.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
SendClientMessage(playerid, COLOR_ORANGE, "The gate is opened and will close in few seconds.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You don't have a remote that could open the gate!");
}
return 1;
}