11.12.2009, 05:36
i want when player types RCTRL then it create explosion infront of the RC_TANK if the player is in RC_TANK
but there is something wrong thats why its not creating explosion
help me
but there is something wrong thats why its not creating explosion
help me
Код:
//=============================================================//
#include <a_samp>
#pragma tabsize 0
#define RC_TANK 564
#define HOLDING(%0) \
((newkeys & (%0)) == (%0))
new Float:x, Float:y, Float:z, Float:angle;
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (HOLDING(KEY_FIRE))
{
new
vehicleid = GetPlayerVehicleID(playerid);
if (vehicleid == 564)
{
GetVehiclePos(vehicleid, x,y,z);
CreateExplosion(x, y , z -0.25, 12, angle);
}
}
return 1;
}
//==========================================================//

