/repair command
#2

pawn Код:
CMD:repair ( playerid, params[ ] )
{
    if( IsPlayerInAnyVehicle ( playerid ) )
    {
        RepairVehicle( GetPlayerVehicleID ( playerid ) );
        SendClientMessage ( playerid, -1, "* Your vehicle has been repaired!" );
       
        //GivePlayerMoney ( playerid, -100 ), GameTextForPlayer ( playerid, 1, 1000, "~r~-~g~$100" );
        // You can uncomment this line ^ if you wish to make it cost $100 (or change the value)
    }
    else
    {
        return SendClientMessage ( playerid, -1, "ERROR: You're not inside of a vehicle!" );
    }
    return true;
}
Here you are.
Reply


Messages In This Thread
/repair command - by sscarface - 23.04.2012, 23:49
Re: /repair command - by 2KY - 23.04.2012, 23:52
Re: /repair command - by sscarface - 23.04.2012, 23:56
Re: /repair command - by 2KY - 23.04.2012, 23:59
Re: /repair command - by sscarface - 24.04.2012, 00:00
Re: /repair command - by sscarface - 24.04.2012, 00:02
Re: /repair command - by 2KY - 24.04.2012, 00:02
Re: /repair command - by sscarface - 24.04.2012, 00:10
Re: /repair command - by diego_p11 - 24.04.2012, 02:09
Re: /repair command - by Yuryfury - 24.04.2012, 03:20

Forum Jump:


Users browsing this thread: 1 Guest(s)