10.06.2011, 21:33
Код:
if (!strcmp("/quickrepaircar",cmdtext,true)) { if(IsPlayerInAnyVehicle(playerid)) { SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0); SendClientMessage(playerid,COLOR_GREEN, "Car is repaired."); } return 1;}
if (!strcmp("/quickrepaircar",cmdtext,true)) { if(IsPlayerInAnyVehicle(playerid)) { SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0); SendClientMessage(playerid,COLOR_GREEN, "Car is repaired."); } return 1;}
if (!strcmp("/quickrepaircar",cmdtext,true)) { if(IsPlayeradmin(playerid)) { SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0); SendClientMessage(playerid,COLOR_GREEN, "Car is repaired."); }
if (!strcmp("/quickrepaircar",cmdtext,true))
{
if(IsPlayerAdmin(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
SendClientMessage(playerid,COLOR_GREEN, "Car is repaired.");
}
return 1;}
}