Trucking 0 Odesláno: 4. Duben, 2009 Share Odesláno: 4. Duben, 2009 Nwm jestli to tu je moc jsem se nedival ale kdyby to tu bylo tak to smažte. Autor : Darknes Nahoru do modu mezi new si dáme: new Float:x[256],Float:y[256],Float:z[256];//Proměnné nezbytné pro chod scriptu new Float:xx[256],Float:yy[256],Float:zz[256]; new speed[256]; new hSpeed[256]; Mezi Forwardy si dáme: forward CheckS(); forward AnSpeed(); Do OnGameModeInit si vložime timer: SetTimer("CheckS",1100,1); Do OnPlayerEnterVehicle: speed[playerid] = 1; Do OnPlayerConnect: speed[playerid] = 0; Do OnPlayerDeath: speed[playerid] = 0; A nakonec někde dolu do modu si vytvořime publicy: public CheckS()//Checkuje hráče { for (new i=0;i<40;i++) if (IsPlayerConnected(i) && speed[i] == 1)//Kdyz je hrac pripojen a kdyz speed je roven 1 { if (!IsPlayerAdmin(i))//Kdyz hrac neni admin { if (GetVehicleModel(GetPlayerVehicleID(i)) != 520 && GetVehicleModel(GetPlayerVehicleID(i)) != 519)//Kdyz nesedi v hydre nebo v shamalu { GetPlayerPos(i,x[i],y[i],z[i]);//Zjištuje hráčovu pozici a ukládá ji do proměných hSpeed[i] = 1; SetTimer("AnSpeed",1000,0);//Vyvolává timer AnSpeed } } } } public AnSpeed() { for (new i=0;i<40;i++) if (IsPlayerConnected(i) && hSpeed[i] == 1) { GetPlayerPos(i,xx[i],yy[i],zz[i]);//Zjistuje aktualní pozici hráče a ukládá ji do proměnných if (xx[i]>x[i]+75 || yy[i]>y[i]+75 || xx[i]{ GetPlayerName(i, pName, MAX_PLAYER_NAME); format(string, sizeof(string), "Hráč %s byl pozitivni na SpeedHack!!", pName); SendClientMessageToAll(COLOR_RED,string); } } } Speed Hack si kdyžtak upravte podle svych představ Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 4. Duben, 2009 Share Odesláno: 4. Duben, 2009 napiš rovnou autora toho anti-speed-hacku ... Link to comment Share on other sites More sharing options...
Trucking 0 Odesláno: 4. Duben, 2009 Author Share Odesláno: 4. Duben, 2009 FreeWall":1b5asg6p]napiš rovnou autora toho anti-speed-hacku ... Autor Speed Hacku: Darknes Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 4. Duben, 2009 Share Odesláno: 4. Duben, 2009 mal si editovat prvy post a nie napisat odpoved Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 4. Duben, 2009 Share Odesláno: 4. Duben, 2009 už jsem mu to editoval ... Link to comment Share on other sites More sharing options...
Trucking 0 Odesláno: 4. Duben, 2009 Author Share Odesláno: 4. Duben, 2009 FreeWall":2sh2ozr6]už jsem mu to editoval ... Ok dik že si mi to nesmazal Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 4. Duben, 2009 Share Odesláno: 4. Duben, 2009 vedel som ez mi to je povedome http://pawnobox.net/smf2/index.php?topic=4549.0 je to copy, keby to bolo zo samp forka nic nepowem :silent: ale ej to z pb :thumbdown: Link to comment Share on other sites More sharing options...
Guest [*LoNg*]LiFe Odesláno: 5. Duben, 2009 Share Odesláno: 5. Duben, 2009 xD inac viete o tom ze ked mate skur... lagy a mas anti speed hack v mode a das napr /goto xD tak ze ta to vyhodi za rychlost ? lol Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 5. Duben, 2009 Share Odesláno: 5. Duben, 2009 nj, to se v RŽ 5.2 stát nemůže, tam už mam speed-hack vymáklej JOKE Link to comment Share on other sites More sharing options...
Adamos 1 Odesláno: 5. Duben, 2009 Share Odesláno: 5. Duben, 2009 nj uz se tesim na RZ 5.2, hlavne na vymazani vsech ban Listu JOKE Link to comment Share on other sites More sharing options...
Guest ShockyCZE Odesláno: 5. Duben, 2009 Share Odesláno: 5. Duben, 2009 ":38qpmykb]vedel som ez mi to je povedome http://kokotbox.net/smf2/index.php?topic=4549.0" onclick="window.open(this.href);return false; je to copy, keby to bolo zo samp forka nic nepowem :silent: ale ej to z pb :thumbdown: tak tam das if(IsPlayerInAnyVehicle(playerid)) { } A delat to nebude Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now