Player state #5
#1

Hello everyone.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate != PLAYER_STATE_ENTER_VEHICLE_DRIVER && newstate == PLAYER_STATE_DRIVER)
    {
        NewKick(playerid);
        return true;
    }
}
I've tried to create some kind of anti cheat for players, who teleports into the vehicle.
As I understand, PLAYER_STATE_ENTER_VEHICLE_DRIVER means, that player pushed "F" button.
So, if he didn't push it, but he became a driver - he is a cheater.

But right now everyone get kicked, who're trying to get into the vehicle.

Sorry for my English guys, please, help me find a solution.
Reply
#2

Actually that won't work ******
Reply
#3

Hehe next time try to explain more in details so the guy won't get confused :3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)