18.05.2011, 13:25
Yeah sure
pawn Код:
if (!strcmp(cmdtext, "/fix"))
{
if(IsInDM[playerid] ==1)
{
SendClientMessage(playerid, red, "Please /kill yourself, then you can fix your car");
return 1;
}
//This is the code when your NOT in DM
RepairVehicle(GetPlayerVehicleID(playerid));
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
SendClientMessage(playerid, red, "Vehicle repaired");
return 1;
}