[Ajuda]Componente
#4

Cara me explica para que pegar a cordenade e setar d novo?
Como a public й de entrar no carro sу mandar remover o player.

Teanta assim:

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if (vehicleid == 40)
    {
        AddVehicleComponent(vehicleid, 1079); // Cutte
    }
    if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
    {
        if(IsACopCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader] > 3 || PlayerInfo[playerid][pMember] > 3)
            {
                //WantedPoints[playerid]+=2;
                //SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
                RemovePlayerFromVehicle(playerid);
            }
        }
        if(IsNgCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader] > 3 || PlayerInfo[playerid][pMember] > 3)
            {
                //WantedPoints[playerid]+=2;
                //SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
                RemovePlayerFromVehicle(playerid);
            }
           
        }
        if (IsAnAmbulance(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pMember] != 4 || PlayerInfo[playerid][pLeader] != 4)WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Roubos de uma ambulвncia");
        }
        if (IsATank(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader] != 3 || PlayerInfo[playerid][pMember] != 3)WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Roubos de um tanque"); SendClientMessage(playerid, COLOR_RED,"Vocк nгo sabe como conduzi-lo ainda.");
        }
        if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1)
        {
            if(PlayerInfo[playerid][pAdmin] < 1337 && AdminDuty[playerid] == 0)
            RemovePlayerFromVehicle(playerid);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[Ajuda]Componente - by [Dk]TuReTOo - 24.05.2011, 15:48
Re: [Duvida]Componente - by deregudegu - 24.05.2011, 15:55
Re: [Duvida]Componente - by [Dk]TuReTOo - 24.05.2011, 16:01
Re: [Duvida]Componente - by deregudegu - 24.05.2011, 16:10
Re: [Duvida]Componente - by [Dk]TuReTOo - 24.05.2011, 16:13
Re: [Duvida]Componente - by deregudegu - 24.05.2011, 16:41
Re: [Duvida]Componente - by The Knight - 24.05.2011, 19:48
Re: [Duvida]Componente - by DartakousLien - 24.05.2011, 20:46
Re: [Duvida]Componente - by deregudegu - 24.05.2011, 21:15

Forum Jump:


Users browsing this thread: 1 Guest(s)