RmT_Kjuba 10 Odesláno: 1. Duben, 2010 Share Odesláno: 1. Duben, 2010 čus dal jsem si do modu anti Speed hack a trošku upravil ale kdyz chcu zabudovat že když ma hrač hydru tak to pro nej neplati nejde to public OnPlayerUpdate(playerid) { if(GetPlayerVehicleID(playerid) == 520) return 0; if(IsPlayerConnected(playerid)) // Když je hráč připojenej { if(IsPlayerInAnyVehicle(playerid)) // Když je v autě { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(GetPlayerSpeed(playerid,true) > 320) // Když je rychlost větší jak 500 { new string[128]; // nadefinujeme string format(string,sizeof(string),"[ AntiCheat ] Hráč %s byl kicknut za [ SpeedHack/AIRBRK ]",Jmeno(playerid)); // Zformátujeme string že byl kickunt SendClientMessageToAll(cervena,string); // Napíšeme všem string COLOR_BILA si změnte Kick(playerid); // Kickneme hráče } } } } return 1; } uz sem skousel i if(GetPlayerVehicleID(playerid) != 520) atp..ale proste nereaguje dik za pomoc Link to comment Share on other sites More sharing options...
0 Om3n 78 Odesláno: 1. Duben, 2010 Share Odesláno: 1. Duben, 2010 to ale nebere ID modelu auta...ale cislo ktery bylo vozidlu prirazeny kdyz se vytvorilo...takze to nefunguje jenom pro auto ktery se vytvorilo jako 520. Link to comment Share on other sites More sharing options...
0 RmT_Kjuba 10 Odesláno: 1. Duben, 2010 Author Share Odesláno: 1. Duben, 2010 skousel sem i GetPlayerVehicle nebo jak ale taky nic neumis to tak aby to proste neplatilo pro hydru ID 520 Link to comment Share on other sites More sharing options...
0 FreeWall 3 Odesláno: 1. Duben, 2010 Share Odesláno: 1. Duben, 2010 GetVehicleModel(vehicleid) Link to comment Share on other sites More sharing options...
0 RmT_Kjuba 10 Odesláno: 1. Duben, 2010 Author Share Odesláno: 1. Duben, 2010 jj dik ale zase kdyz das do publicu OnPlayerUpdate vehicleid tak to zase nezna Link to comment Share on other sites More sharing options...
0 StarsCream_Cze 1 Odesláno: 1. Duben, 2010 Share Odesláno: 1. Duben, 2010 if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520) return 0; Vehicleid je index auta v módu, stejně jako playerid ID 520 (hydra) je Model id, index modelu Teď by už mělo jet //edit předběhli mě Link to comment Share on other sites More sharing options...
0 RmT_Kjuba 10 Odesláno: 1. Duben, 2010 Author Share Odesláno: 1. Duben, 2010 StarsCream dik a ja si myslel kdyz sem tohle vydel v jinym publicu ze staci GetPlayerVehicleID...jdu to skusit diky all Link to comment Share on other sites More sharing options...
0 tbx 7 Odesláno: 1. Duben, 2010 Share Odesláno: 1. Duben, 2010 vehicle id si musis nadefinovat prez new a GetPlayerVehicleId Link to comment Share on other sites More sharing options...
0 Kieranoo 0 Odesláno: 28. Květen, 2010 Share Odesláno: 28. Květen, 2010 Super.. Snad to funguje jen mám problém s jedním errorem PS: Mám pawno 0.3 error 017: undefined symbol "GetPlayerSpeed" Link to comment Share on other sites More sharing options...
0 fugasjunior 1 Odesláno: 28. Květen, 2010 Share Odesláno: 28. Květen, 2010 Super.. Snad to funguje jen mám problém s jedním errorem PS: Mám pawno 0.3 error 017: undefined symbol "GetPlayerSpeed" Tak to by tu funkci musel mít pán nadefinovanou... Dej si tohle pod include: stock GetPlayerSpeed(playerid, bool:kmh) { new Float:Vx,Float:Vy,Float:Vz,Float:rtn; if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz); rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2))); return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100); } Link to comment Share on other sites More sharing options...
0 Kieranoo 0 Odesláno: 28. Květen, 2010 Share Odesláno: 28. Květen, 2010 Super.. Snad to funguje jen mám problém s jedním errorem PS: Mám pawno 0.3 error 017: undefined symbol "GetPlayerSpeed" Tak to by tu funkci musel mít pán nadefinovanou... Dej si tohle pod include: stock GetPlayerSpeed(playerid, bool:kmh) { new Float:Vx,Float:Vy,Float:Vz,Float:rtn; if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz); rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2))); return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100); } Díky.. Skusil jsem, nefunguje.. Jel jsem 570 a nic :? Link to comment Share on other sites More sharing options...
Dotaz
RmT_Kjuba 10
čus dal jsem si do modu anti Speed hack a trošku upravil ale kdyz chcu zabudovat že když ma hrač hydru tak to pro nej neplati nejde to
public OnPlayerUpdate(playerid)
{
if(GetPlayerVehicleID(playerid) == 520) return 0;
if(IsPlayerConnected(playerid)) // Když je hráč připojenej
{
if(IsPlayerInAnyVehicle(playerid)) // Když je v autě
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(GetPlayerSpeed(playerid,true) > 320) // Když je rychlost větší jak 500
{
new string[128]; // nadefinujeme string
format(string,sizeof(string),"[ AntiCheat ] Hráč %s byl kicknut za [ SpeedHack/AIRBRK ]",Jmeno(playerid)); // Zformátujeme string že byl kickunt
SendClientMessageToAll(cervena,string); // Napíšeme všem string COLOR_BILA si změnte
Kick(playerid); // Kickneme hráče
}
}
}
}
return 1;
}
uz sem skousel i if(GetPlayerVehicleID(playerid) != 520) atp..ale proste nereaguje dik za pomoc
Link to comment
Share on other sites
10 odpovědí na tuto otázku
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