Need 2 Commands.. They don't work..
#2

For the command:

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
Reply


Messages In This Thread
Need 2 Commands.. They don't work.. - by [SP]Badman - 14.11.2010, 17:04
Re: Need 2 Commands.. They don't work.. - by Las Venturas CNR - 14.11.2010, 17:06
Re: Need 2 Commands.. They don't work.. - by [SP]Badman - 14.11.2010, 17:14
Re: Need 2 Commands.. They don't work.. - by The_Moddler - 14.11.2010, 17:16

Forum Jump:


Users browsing this thread: 1 Guest(s)