23.04.2012, 23:52
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;
}