30.09.2013, 11:51
Do anybody knows why this is not working?
i have enabled this code for only three weapons but it is automatically being enabled to other weapons too.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPlayerWeapon(playerid) == 24 || 25 || 34)
{
if (RELEASED(KEY_FIRE))
{
new Float:X;
new Float:Y;
new Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z+0.0001);
}
}
return 1;
}