[DuvidaІ] Carros Spawn - Return
#1

Estou denovo com problemas no carro spawn.

Eu Estou pondo ele no.

public OnPlayerStateChange(playerid, newstate, oldstate)

Me falaram que era em outro lugar.

Se tiver certo qual lugar seria que tenho que por?

Код:
    //pm//
    if(IsPlayerInVehicle(playerid,PMcars[0])||IsPlayerInVehicle(playerid,PMcars[1])||IsPlayerInVehicle(playerid,PMcars[2])||IsPlayerInVehicle(playerid,PMcars[3])||IsPlayerInVehicle(playerid,PMcars[4])||IsPlayerInVehicle(playerid,PMcars[5])||IsPlayerInVehicle(playerid,PMcars[6])||IsPlayerInVehicle(playerid,PMcars[7])||IsPlayerInVehicle(playerid,PMcars[8])||IsPlayerInVehicle(playerid,PMcars[9]))
    {
    if(PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1)
    {
    SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um Policia Militar!!!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid, 1);
    }
    }
Agradeзo
Reply
#2

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(IsPlayerInVehicle(playerid,PMcars[0])||IsPlayerInVehicle(playerid,PMcars[1])||IsPlayerInVehicle(playerid,PMcars[2])||IsPlayerInVehicle(playerid,PMcars[3])||IsPlayerInVehicle(playerid,PMcars[4])||IsPlayerInVehicle(playerid,PMcars[5])||IsPlayerInVehicle(playerid,PMcars[6])||IsPlayerInVehicle(playerid,PMcars[7])||IsPlayerInVehicle(playerid,PMcars[8])||IsPlayerInVehicle(playerid,PMcars[9]))
    {
        if(PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1)
        {
            SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um Policia Militar!!!");
            RemovePlayerFromVehicle(playerid);
            TogglePlayerControllable(playerid, 1);
        }
    }
}
Reply
#3

A ta e no OnPlayerEnterVehicle vlws
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)