[AYUDA] Asignar Coche a miembro
#1

Hola , me estoy basando en GM rp como asignar un coche a miembros de facciones , es decir

He visto sistemas que los lideres ponen

/asignarcoche [ID] [ID DEL COCHE]

/DESIGNARCOCHE [ID] [ID DEL COCHE]

por ejemplo , MI ID DE COCHE DE LSPD ES 1 , y mi id es 2 , /asignarcoche 2 1 , bueno y que cuando te subas a otra patrulla te diga "NO AUTORIZADO"

y para cuando se vaya de la facion digamos ponga /designarcoche [id] [id del coche]

Quisiera saber como crear ese sistema , o si alguno me lo pasa , muchisimas gracias
Reply
#2

pawn Код:
new PM[2]; //cantidad del coches creado en CreatVehicle

//OnGameModeInit()
taxis[0] = //AddStaticVehicle
taxis[1] = //AddStaticVehicle
//creciente al (new PM[2];)

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new car = GetPlayerVehicleID(playerid);
    if(newstate == PLAYER_STATE_DRIVER)
    {
        for(new i = 0; i < sizeof(cars); i ++)
        {
            if(car== PM[i])
                {
                    SendClientMessage(playerid, 0xD900D3FF, "NO AUTORIZADO");
                    RemovePlayerFromVehicle(playerid);
                }
            }
        }
    }
    return true;
}
Reply
#3

Quote:
Originally Posted by Snake Serp
Посмотреть сообщение
pawn Код:
new PM[2]; //cantidad del coches creado en CreatVehicle

//OnGameModeInit()
taxis[0] = //AddStaticVehicle
taxis[1] = //AddStaticVehicle
//creciente al (new PM[2];)

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new car = GetPlayerVehicleID(playerid);
    if(newstate == PLAYER_STATE_DRIVER)
    {
        for(new i = 0; i < sizeof(cars); i ++)
        {
            if(car== PM[i])
                {
                    SendClientMessage(playerid, 0xD900D3FF, "NO AUTORIZADO");
                    RemovePlayerFromVehicle(playerid);
                }
            }
        }
    }
    return true;
}
Disculpa , soy medio burro , me explicarias laonda?
Reply
#4

Add mi MSN quй ayudo \/
Reply
#5

Prefiero que me ayuden por aqui , gracias igual

їAlguien mas si me puede ayudar?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)