13.07.2012, 14:03
No, you'll have to do some further development. and the "vehicleid" is invalid parameter in CMD:
EDIT: For example -
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;
}