Jump to content
  • 0

Problema newkeys



7 answers to this question

Recommended Posts

  • 0
3 minutes ago, eltAndrei said:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

in acest public adaugi acea variabila if ca sa nu-ti mai dea erorile.

return 1;


in gm asta public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
   new newcar = GetClosestVehicle2(playerid, 40);
   new veh = GetPlayerVehicleID(playerid);
   new engine,lights,alarm,doors,bonnet,boot,objective;
   if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0);
   if(newkeys & KEY_FIRE || newkeys & KEY_AIM)
       new weapon = GetPlayerWeapon(playerid),
           slot = GetWeaponSlot(weapon);
       if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && WeaponData[playerid][slot] == false && slot != 0 && weapon != 46  && GetPlayerWeapon(playerid) != 9 && curatj[playerid] == 0)
           new sendername[25],gunname[50],string[256];
           GetPlayerName(playerid, sendername, sizeof(sendername));
           format(string, sizeof(string), "(N) %s (%d, level %d) may be using weapon hack, weapon created: %s.",sendername, playerid, PlayerInfo[playerid][pLevel], gunname);
           return 1;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.