01.06.2012, 17:46
okay i got a scope for my ha so it one shot kills at headshot if you got a scope.
the public its under.
this code crashes my pwn and doesn't compile.
HOW CAN I FIX?
the public its under.
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
Код:
{ if(newkeys & KEY_FIRE && newkeys & KEY_HANDBRAKE) { if(GetPlayerWeapon(playerid) == 34 && PlayerInfo[playerid][pScope] == 1 && PlayerInfo[playerid][pMember] == 8 && ScopeEnabled == 1) { new Float:blahx, Float:blahy, Float:blahz; HeadshotCheck(playerid, blahx, blahy, blahz); } } return 1; }