Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Anti Kangaaroo by Thom_Sowop ;)!
- #include <a_samp>
- #define FILTERSCRIPT
- new JoueurAppuieJump[MAX_PLAYERS];
- public OnPlayerConnect(playerid)
- {
- JoueurAppuieJump[playerid] = 0;
- return 1;
- }
- //==============================================================================
- forward AppuieJump(playerid);
- public AppuieJump(playerid)
- {
- JoueurAppuieJump[playerid] = 0;
- ClearAnimations(playerid);
- return 1;
- }
- forward AppuiePasJump(playerid);
- public AppuiePasJump(playerid)
- {
- JoueurAppuieJump[playerid] = 0;
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if((newkeys & KEY_JUMP) && !IsPlayerInAnyVehicle(playerid))
- {
- JoueurAppuieJump[playerid] ++;
- SetTimerEx("AppuiePasJump", 14000, false, "i", playerid);
- if(JoueurAppuieJump[playerid] == 2)
- {
- ApplyAnimation(playerid, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
- new string[64], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"%s a trébuché et tombe directement au sol.",pName);
- SendClientMessageToAll(0x8DC43CC8,string);
- GameTextForPlayer(playerid,"~r~Bunny Hopping~w~ Interdit",3000,0);
- SetTimerEx("AppuieJump", 9000, false, "i", playerid);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement