SetPlayerPos doesn't work on OnPlayerExitVehicle
#3

Quote:
Originally Posted by antonio112
Посмотреть сообщение
Are you sure "OnPlayerExitVehicle" is called when you 'leave' RC vehicles ? Why don't you use 'OnPlayerStateChange' ? That should work...
As you can see, here is the original OnPlayerExitVehicle:

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    for(new i=0;i<26;i++)
    {
        if(RCWarCar[i] == vehicleid) Cars[i] = 0;
        if(Kart[i] == vehicleid)
        {
            Karts[i] = 0;
            Player[playerid] = 0;
            SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,1173.4355,1355.9640,10.9219);
            SetPlayerFacingAngle(playerid,88.9805);
            SendClientMessage(playerid,0x00C7FFAA,"Bye, noob");
        }
    }
    return 1;
}
and all author's actions are working well. The only thing that is not working is my SetPlayerPos.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)