14.11.2010, 17:06
For the command:
You will need to use "OnPlayerKeyStateChange" for the numpad one. I don't think "+" is a detectable key.
More information: https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
pawn Код:
if (!strcmp("/repair", cmdtext))
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!");
return 1;
}
You will need to use "OnPlayerKeyStateChange" for the numpad one. I don't think "+" is a detectable key.
More information: https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange