OnPlayerExitVehicle Problem
#9

Try this
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
    {
        new pName[24];
        new string[128];
        GetPlayerName(playerid, pName, 24);
        format(string, 128, "* %s has left the vehicle.", pName);
        SendClientMessage(playerid, 0xFFFFFFFF, string);
        return 1;
    }
    return 1;
}
Use OnPlayerStateChange
Reply


Messages In This Thread
OnPlayerExitVehicle Problem - by Visio - 02.06.2012, 06:03
Re: OnPlayerExitVehicle Problem - by Flake. - 02.06.2012, 06:08
Re: OnPlayerExitVehicle Problem - by Visio - 02.06.2012, 06:09
Re: OnPlayerExitVehicle Problem - by Legolas.W - 02.06.2012, 06:10
Re: OnPlayerExitVehicle Problem - by Flake. - 02.06.2012, 06:11
Re: OnPlayerExitVehicle Problem - by Visio - 02.06.2012, 06:16
Re: OnPlayerExitVehicle Problem - by Flake. - 02.06.2012, 06:19
Re: OnPlayerExitVehicle Problem - by Visio - 02.06.2012, 06:21
Re: OnPlayerExitVehicle Problem - by newbienoob - 02.06.2012, 06:23
Re: OnPlayerExitVehicle Problem - by Legolas.W - 02.06.2012, 06:32

Forum Jump:


Users browsing this thread: 1 Guest(s)