Simple NITRO LMB
#4

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
pawn Код:
//Define this first
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

//Under OnPlayerKeyStateChange
if (PRESSED( KEY_FIRE ))
{
     AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
}
thanks but where i will add that here?

Quote:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_HORN)
{
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID,Float:B;
VehicleID = GetPlayerVehicleID(playerid);
GetVehicleZAngle(VehicleID,B);
SetVehicleZAngle(VehicleID,B);
}
}
return 1;
}

Reply


Messages In This Thread
Simple NITRO LMB - by kbalor - 24.06.2012, 17:36
Re: Simple NITRO LMB - by WillyP - 24.06.2012, 17:39
Re: Simple NITRO LMB - by newbienoob - 24.06.2012, 17:40
Re: Simple NITRO LMB - by kbalor - 24.06.2012, 17:51
Re: Simple NITRO LMB - by newbienoob - 24.06.2012, 17:57
Re: Simple NITRO LMB - by kbalor - 24.06.2012, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)