Help with Gates
#1

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

PHP код:
    if(strcmp(cmd,"/Yamao2",true)==0)
    {
            if(
PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
            {
         
MoveDynamicObject(rallon4658.40002441406, -1226.699951171922.399999618531.5);
        
SetTimer("GateCloseBMS"80000);
        
format(stringsizeof(string), "* %s takes his/her remote and opens the gate."sendername);
        
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
        
SendClientMessage(playeridCOLOR_ORANGE"The gate is opened and will close in few seconds.");
          }
        else
        {
            
SendClientMessage(playeridCOLOR_RED"You don't have a remote that could open the gate!");
        }
        return 
1;
    } 
Reply


Messages In This Thread
Help with Gates - by miley1 - 19.05.2012, 19:29
Re: Help with Gates - by SnG.Scot_MisCuDI - 19.05.2012, 20:18
Re: Help with Gates - by ReneG - 19.05.2012, 20:36
Re: Help with Gates - by miley1 - 20.05.2012, 12:11
Re: Help with Gates - by [FMJ]PowerSurge - 20.05.2012, 12:14
Re: Help with Gates - by miley1 - 20.05.2012, 13:00

Forum Jump:


Users browsing this thread: 2 Guest(s)