Open/Close gate in one CMD
#3

Did it like this :
PHP код:
    if(strcmp(cmd"/whgate"true) == 0)
    {
    if(
WHGATE == false)
    {
        
MoveDynamicObject(WHGATE,1141.0118408203, -1206.870605468812.685035705566,1.2); //
        
SendClientMessage(playeridCOLOR_RED"Gates are opening, Please Wait.");
        
WHGATE true;
    }
    if(
WHGATE == true)
    {
        
MoveDynamicObject(WHGATE,1141.0118408203, -1206.870605468821.935035705566,1.2); //
        
SendClientMessage(playeridCOLOR_RED"The Gates are closing, Please Wait."); //
        
WHGATE false;
    }
    return 
1;
    } 
But it gave me Warning : Tag Mischat at :
PHP код:
WHGATE CreateDynamicObject(29901141.0118408203, -1206.870605468821.9350357055660091.669952392578); 
and when i got to the location of the gate or even anyplace and i type /whgate nothing happen..
Reply


Messages In This Thread
Open/Close gate in one CMD - by Black Axe - 21.01.2012, 17:17
Re: Open/Close gate in one CMD - by [ABK]Antonio - 21.01.2012, 17:20
Re: Open/Close gate in one CMD - by Black Axe - 21.01.2012, 17:31
Re: Open/Close gate in one CMD - by xGoldenx - 21.01.2012, 18:00
Re: Open/Close gate in one CMD - by Black Axe - 21.01.2012, 18:56

Forum Jump:


Users browsing this thread: 1 Guest(s)