Gates Help
#4

If you don't get the message, you have to check if you put the right coordinate

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext,"/openmaingate", true) == 0)
    {
        if(PlayerNameIs(playerid, "Chicken0895"))
        {                                              
            if(IsPlayerInRangeOfPoint(15.0, playerid,1002.49169922,-2106.39648438,14.14295101))
            {
                SendClientMessage(playerid,0,"Opened");
                MoveObject(987, 1006.49169922,-2104.39648438,6.14295101, 1.500000);  
                return 1;
            }    
        }                                                                        
    }                                                                          
    if(strcmp(cmdtext,"/closemaingate", true) == 0)
    {                                                                            
        if(PlayerNameIs(playerid, "Chicken0895"))
        {                                                                            
            if(IsPlayerInRangeOfPoint(15.0, playerid,1002.49169922,-2106.39648438,14.14295101))
            {
                SendClientMessage(playerid,0,"Closed");
                MoveObject(987, 1006.49169922,-2104.39648438,12.14295101, 1.500000);
                return 1;
            }
        }
    }
    return 0;
}
Reply


Messages In This Thread
Gates Help - by Chicken0895 - 02.08.2011, 00:15
Re: Gates Help - by Basicz - 02.08.2011, 01:03
Re: Gates Help - by Chicken0895 - 02.08.2011, 01:07
Re: Gates Help - by =WoR=Varth - 02.08.2011, 01:16
Re: Gates Help - by Basicz - 02.08.2011, 01:22
Re: Gates Help - by Chicken0895 - 02.08.2011, 01:38

Forum Jump:


Users browsing this thread: 1 Guest(s)