Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Excision Jump Sistemi
- */
- #include <a_samp>
- #include <zcmd>
- new bool:eJump[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Excision Jump Sistemi ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- eJump[playerid] = false;
- return 1;
- }
- CMD:superman(playerid, params[])
- {
- if(eJump[playerid] == false)
- {
- eJump[playerid] = true;
- SendClientMessage(playerid,-1, "Süper zıplama acıldı .");
- }else
- {
- eJump[playerid] = false;
- SendClientMessage(playerid,-1, "Süper zıplama kapatıldı.");
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys & KEY_JUMP)
- {
- if(!spamProtect(playerid, "eJump", 5))return 1;
- if(eJump[playerid] == true)
- {
- new Float: ePos[3];
- GetPlayerVelocity(playerid, ePos[0], ePos[1], ePos[2]);
- SetPlayerVelocity(playerid, ePos[0], ePos[1], ePos[2]+5);
- }
- }
- return 1;
- }
- //RyDeR`
- stock spamProtect(playerid, const szSpam[], iTime) {
- static
- s_szPVar[32],
- s_iPVar
- ;
- format(s_szPVar, sizeof(s_szPVar), "pv_iSpam_%s", szSpam);
- s_iPVar = GetPVarInt(playerid, s_szPVar);
- if((GetTickCount() - s_iPVar) < iTime * 1000) {
- return 0;
- } else {
- SetPVarInt(playerid, s_szPVar, GetTickCount());
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement