SA-MP Forums Archive
Player kicked - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player kicked (/showthread.php?tid=645739)



Player kicked - Foxer123456 - 03.12.2017

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);
	    }
	    
	    
	}



Re: Player kicked - Matz - 03.12.2017

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);




Re: Player kicked - Foxer123456 - 03.12.2017

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");  
        }
    }



Re: Player kicked - Matz - 03.12.2017

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


Re: Player kicked - Foxer123456 - 03.12.2017

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.


Re: Player kicked - Matz - 04.12.2017

Did you use the Kick function at the end?


Re: Player kicked - Foxer123456 - 04.12.2017

yes with timer, like this:

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



Re: Player kicked - Matz - 04.12.2017

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");  
        }
    }



Re: Player kicked - Foxer123456 - 04.12.2017

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");  
        }
    }