23.01.2010, 10:40
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[0])
{
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 0.0);
return 1;
}
if (strcmp("/r", cmdtext, true))
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid) RepairVehicle(vehicleid);
else SendClientMessage(playerid, COLOR_RED, "You are not in a vehicle!");
return 1;
}
return 0;
}