[AJUDA]Quando player cancela entrada em veнculo
#6

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(Info[i][Arara])
                RemovePlayerAttachedObject(i, 0);
        }
    }
    if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(Info[i][Arara])
                SetPlayerAttachedObject(playerid,0, 19079, 1, 0.319503, -0.089340, -0.185576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)