Jump to content
  • 0

Question

7 answers to this question

Recommended Posts

  • 0
Posted
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)
       {
           ResetPlayerWeaponsEx(playerid);
           ResetPlayerWeapons(playerid);
           new sendername[25],gunname[50],string[256];
           GetWeaponNameEx(weapon,gunname,sizeof(gunname));
           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);
           ABroadCast(COLOR_RED,string,1);
           return 1;
       }
   }

  • 0
Posted
4 minutes ago, eltAndrei said:

si functia pe care vrei sa o adaugi tu care este? functia care iti da eroare

nu am adaugat nicio functie, am adaugat ce este acolo, am cautat eroarea adica "newkeys" in gm am gasit ceva definit, dar tot nu inteleg dc imi zice ca nu e definit

  • 0
Posted
1 minute ago, eltAndrei said:

Pai linia care iti da eroare nu este adaugata in acel public.  Asta incerc sa-ti explic.

if(newkeys & KEY_FIRE || newkeys & KEY_AIM) am asta in public

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.