Cmd not working [+rep]
#2

pawn Код:
if (strcmp("/deliver", cmdtext, true) == 0)
    {
        new vehicle;
        vehicle = GetPlayerVehicleID(playerid);
        if(vehicle == Missioncar)
        {
            if(!IsPlayerInRangeOfPoint(playerid, 20.0, -2329.4565,2299.1106,3.5000))
            {
                SendClientMessage(playerid, COLOR_RED, "<!>You are not near the dropoff point!");
                return 1;
            }
            GivePlayerMoney(playerid, 500);
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 100);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "<!>Mission done! You have been awarded!");
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "<!>You have received 100HP, 100Armour and 500$!");
            DestroyVehicle(Missioncar);
            SendClientMessageToAll(COLOR_BLUE, "<!>Mission is done! USA did it!");
            return 1;
        }
        return 1;
    }
What are you actually trying to make? Please explain more
Reply


Messages In This Thread
Cmd not working [+rep] - by Twinki1993 - 12.01.2012, 22:06
Re: Cmd not working [+rep] - by Tanush123 - 13.01.2012, 01:47
Re: Cmd not working [+rep] - by Twinki1993 - 14.01.2012, 01:47
Re: Cmd not working [+rep] - by Tanush123 - 14.01.2012, 01:59
Re: Cmd not working [+rep] - by Twinki1993 - 14.01.2012, 02:27
Re: Cmd not working [+rep] - by Tanush123 - 14.01.2012, 14:00

Forum Jump:


Users browsing this thread: 1 Guest(s)