17.04.2009, 17:51
Here you go.
pawn Код:
if(strcmp(cmdtext, "/fixVeh", true) == 0)
{
if(GetPlayerState(playerid) == 2)
{
SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
SendClientMessage(playerid,0xFFFF00AA, "Vehicle Fixed!.");
}
else return SendClientMessage(playerid,0xFFFF00AA, "You're not in a vehicle!.");
return 1;
}