Codes trouble..Some help
#9

No, you'll have to do some further development. and the "vehicleid" is invalid parameter in CMD:

EDIT: For example -

pawn Код:
#include <a_samp>
#include <zcmd>

CMD:heal(playerid, params[])
{
    #pragma unused params
    new vehicleid = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(vehicleid) == 416)
    {
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        return SendClientMessage(playerid, -1, " You're not in an ambulance !");
    }
    return 1;
}
Reply


Messages In This Thread
Codes trouble..Some help - by jimis - 13.07.2012, 13:22
Re: Codes trouble..Some help - by clarencecuzz - 13.07.2012, 13:27
Re: Codes trouble..Some help - by jimis - 13.07.2012, 13:33
Re: Codes trouble..Some help - by jimis - 13.07.2012, 13:39
Re: Codes trouble..Some help - by clarencecuzz - 13.07.2012, 13:49
Re: Codes trouble..Some help - by jimis - 13.07.2012, 13:59
Re: Codes trouble..Some help - by CmZxC - 13.07.2012, 14:00
Re: Codes trouble..Some help - by jimis - 13.07.2012, 14:01
Re: Codes trouble..Some help - by CmZxC - 13.07.2012, 14:03
Re: Codes trouble..Some help - by jimis - 13.07.2012, 14:13

Forum Jump:


Users browsing this thread: 2 Guest(s)