Robert Podaru Posted October 18, 2017 Posted October 18, 2017 (edited) Imi da asta: (5422) : warning 213: tag mismatch ce sa fac ca sa repar? new OnFly[MAX_PLAYERS]; new Float:LastVelocity[MAX_PLAYERS][3]; TrollDetect(playerid, troll = 0) { if(troll == 1) { new str[128], name[MAX_PLAYER_NAME+1]; GetPlayerName(playerid, name, sizeof name); format(str, sizeof str, "Kick: %s has been kicked by AdmBot, reason: Troll (cheats)", name); SendClientMessageToAll(COLOR_SANCTION, str); Kick(playerid); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { if(OnFly[playerid] == false) { new Float:Velocity[3]; GetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2]); new Float:amount = Velocity[0]-LastVelocity[playerid][0]; new Float:amount2 = Velocity[1]-LastVelocity[playerid][1]; if(amount > 3.0 || amount < -4.0 || amount2 > 10.0 || amount2 < -10.0 || Velocity[2] == 0.100000) { new str[128], name[MAX_PLAYER_NAME+1]; GetPlayerName(playerid, name, sizeof name); format(str, sizeof str, "Kick: %s has been kicked by AdmBot, reason: Troll (cheats)", name); SendClientMessageToAll(COLOR_SANCTION, str); Kick(playerid); return 1; } } } if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new Float:Velocity[3]; GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]); if(Velocity[1] == -90.000000 && Velocity[2] == 0.100000) { new str[128], name[MAX_PLAYER_NAME+1]; GetPlayerName(playerid, name, sizeof name); format(str, sizeof str, "Kick: %s has been kicked by AdmBot, reason: Troll (cheats)", name); SendClientMessageToAll(COLOR_SANCTION, str); Kick(playerid); return 1; } } if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) GetPlayerVelocity(playerid, LastVelocity[playerid][0], LastVelocity[playerid][1], LastVelocity[playerid][2]); return 1; } Edited October 18, 2017 by Rillby
SereK Posted October 18, 2017 Posted October 18, 2017 Pai pune linia aici..degeaba ne dai warning-ul Daca nu stim a cata linie este
Robert Podaru Posted October 18, 2017 Author Posted October 18, 2017 e linia 5422,scrie si sus in paranteze Pai pune linia aici..degeaba ne dai warning-ulDaca nu stim a cata linie este e linia 5422,scrie si sus in paranteze
Un4m3d_Hokage Posted October 18, 2017 Posted October 18, 2017 Unde ai creat variabila OnFly? La tine este "false" acolo, deci este o variabila bool(returneaza doar true sau false), asigura-te ca este new bool:OnFly[MAX_PLAYERS]; 1
Robert Podaru Posted October 18, 2017 Author Posted October 18, 2017 Unde ai creat variabila OnFly? La tine este "false" acolo, deci este o variabila bool(returneaza doar true sau false), asigura-te ca este new bool:OnFly[MAX_PLAYERS]; Multumesc frate,chiar nu stiam ce are. REZOLVAT. T\C
Recommended Posts