Player kicked
#1

when the player is on the roof of the machine and when the speed hack anticheat is triggered, then throws out the player who was on the roof, and not the one who drives the car. My english is not so good maybe you understand . How can i fix it ?

Код HTML:
if(GetPlayerSpeed(playerid) > 350 ) {
	    if(IsPlayerInAnyVehicle(playerid) && GTMODE[ GetPlayerVehicleID( playerid ) ] == true ){
	    
	    } else {
	    	SendClientMessageToAll(0xFF0000FF, f("* %s The player was thrown for Speed hack ", Vardas(playerid)));
	    	SetTimerEx("DelayedKick", 10, false, "d", playerid);
	    }
	    
	    
	}
Reply
#2

Are you sure that part kicking the player?

PHP код:
if(GetPlayerSurfingVehicleID(playerid) == INVALID_VEHICLE_ID && GetPlayerSpeed(playerid) > 350 && !IsPlayerInAnyVehicle(playerid) && GTMODEGetPlayerVehicleIDplayerid ) ] == false)
{
    
SendClientMessageToAll(0xFF0000FFf("* %s The player was thrown for Speed hack "Vardas(playerid)));
    
SetTimerEx("DelayedKick"10false"d"playerid);

Reply
#3

Amm look i did some thing. Then i sit in my car server flood me all the time . How can i stop it ? Then i just sit, server start flooding text like this:http://prntscr.com/hijrft

Код HTML:
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
    printf("Atėjo 1");
    {
        if(GetVehicleSpeed(playerid) > 300)
        printf("Atėjo 2");
        {
            new String[100];
            new vehicleid = GetPlayerVehicleID(playerid);
            format(String, sizeof(String),"[Serveris] %s speed with %s was %d (2504, 2455, 68)(1000). Check him with - /pzu",Vardas(playerid),vNames[ GetVehicleModel( GetPlayerVehicleID( playerid ) )-400 ],GetVehicleSpeed(vehicleid));
            SendClientMessageToAll(-1, String);
            printf("Atėjo 3");  
        }
    }
Reply
#4

It will get flooded unless you stop/kick/ban the suspect
Reply
#5

am okey but when player sit(just sit not drive) in car he will be kicked out from server i try it and don't understand why.
Reply
#6

Did you use the Kick function at the end?
Reply
#7

yes with timer, like this:

Код HTML:
SendClientMessageToAll(-1, String);
            SetTimerEx("DelayedKick", 10, false, "d", playerid);
Reply
#8

I don't see Kick function here:

Quote:
Originally Posted by Foxer123456
Посмотреть сообщение
Код HTML:
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
    printf("Atėjo 1");
    {
        if(GetVehicleSpeed(playerid) > 300)
        printf("Atėjo 2");
        {
            new String[100];
            new vehicleid = GetPlayerVehicleID(playerid);
            format(String, sizeof(String),"[Serveris] %s speed with %s was %d (2504, 2455, 68)(1000). Check him with - /pzu",Vardas(playerid),vNames[ GetVehicleModel( GetPlayerVehicleID( playerid ) )-400 ],GetVehicleSpeed(vehicleid));
            SendClientMessageToAll(-1, String);
            printf("Atėjo 3");  
        }
    }
Reply
#9

Kicked works with my timer. But he activated when i sit in car and kick me out

Код HTML:
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
    printf("Atėjo 1");
    {
        if(GetVehicleSpeed(playerid) > 300)
        printf("Atėjo 2");
        {
            new String[100];
            new vehicleid = GetPlayerVehicleID(playerid);
            format(String, sizeof(String),"[Serveris] %s speed with %s was %d (2504, 2455, 68)(1000). Check him with - /pzu",Vardas(playerid),vNames[ GetVehicleModel( GetPlayerVehicleID( playerid ) )-400 ],GetVehicleSpeed(vehicleid));
            SendClientMessageToAll(-1, String);
SetTimerEx("DelayedKick", 10, false, "d", playerid);
            printf("Atėjo 3");  
        }
    }
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)