24.04.2012, 00:02
I believe strcmp & dcmd are compatible.
Here you are.
pawn Код:
dcmd_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;
}