how to add the message to this
#3

pawn Код:
if(!strcmp(command, "/repair", true))
    {
        if(!IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
            return 1;
        }
        if(GetPlayerScore(playerid) < 100)
        {
            SendClientMessage(playerid,0xFFFFFFFF,"You don't have egnouh score! (100 required)");
            return 1;
        }
        RepairVehicle(GetPlayerVehicleID(playerid));
        SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
        PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
        GivePlayerMoney(playerid, -200);
        SendClientMessage(playerid, 0xFFFFFFFF, "{00ff00}Vehicle Repaired {ff0000}$200");
        return 1;
    }
Reply


Messages In This Thread
how to add the message to this - by [LHT]Bally - 24.09.2011, 13:59
Re: how to add the message to this - by Jafet_Macario - 24.09.2011, 14:05
Re: how to add the message to this - by CmZxC - 24.09.2011, 14:05
Re: how to add the message to this - by [LHT]Bally - 24.09.2011, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)