03.03.2009, 17:00
if (strcmp("/fix", cmdtext, true, 10) == 0)
{
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, COLOR_CRED, "SERVER: You are not an admin");
return 1;
}
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_CRED, "SERVER: Not in car");
return 1;
}
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
return 1;
}[/pawn]
{
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, COLOR_CRED, "SERVER: You are not an admin");
return 1;
}
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_CRED, "SERVER: Not in car");
return 1;
}
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
return 1;
}[/pawn]