/mechduty problem
#5

Quote:
Originally Posted by rinori
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/mechduty", true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
        {
            SetPlayerSkin(playerid, 50);
            SendClientMessage(playerid,0xFFFFFFFF,"You are now on duty as a Mechanic");
        }
        else
        {
            SendClientMessage(playerid, 0xFFFFFFF, "You are not a mechanic duty position");
        }
        return 1;
    }
    return 1;
}
I suppose it was quite important to use the bracket located under "if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.843)"

Thanks man
Reply


Messages In This Thread
/mechduty problem - by ChristofferHoffmann - 25.12.2011, 13:30
Re: /mechduty problem - by rinori - 25.12.2011, 13:47
Re: /mechduty problem - by spedico - 25.12.2011, 14:06
Re: /mechduty problem - by ChristofferHoffmann - 25.12.2011, 14:12
Re: /mechduty problem - by ChristofferHoffmann - 25.12.2011, 14:14
Re: /mechduty problem - by ChristofferHoffmann - 25.12.2011, 14:35
Re: /mechduty problem - by VanHalen9898 - 25.12.2011, 14:43
Re: /mechduty problem - by ChristofferHoffmann - 25.12.2011, 14:54
Re: /mechduty problem - by ChristofferHoffmann - 25.12.2011, 14:59
Re: /mechduty problem - by rinori - 25.12.2011, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)