Can't make more than 2 cmd
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/duty", cmdtext, true, 10) == 0)
    {
        if (IsPlayerInRangeOfPoint(playerid, 3.0, 258.7297,80.1776,1003.6406))
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
    }
    if (strcmp("/copautomat", cmdtext, true, 10) == 0)
    {
        if (IsPlayerInRangeOfPoint(playerid, 3.0, 255.2583,73.7139,1003.6406))
        GivePlayerWeapon(playerid, 31, 300);
        // Do something here
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Can't make more than 2 cmd - by Frosty_LV - 08.07.2012, 15:40
Re: Can't make more than 2 cmd - by Vince - 08.07.2012, 15:50
Re: Can't make more than 2 cmd - by Frosty_LV - 08.07.2012, 15:52
Re: Can't make more than 2 cmd - by Andregood - 08.07.2012, 15:52
Re: Can't make more than 2 cmd - by Aprezt - 08.07.2012, 16:43

Forum Jump:


Users browsing this thread: 1 Guest(s)