[AYUDA] Asignar Coche a miembro - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [AYUDA] Asignar Coche a miembro (
/showthread.php?tid=316659)
[AYUDA] Asignar Coche a miembro -
Shoock[K] - 07.02.2012
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
Re: [AYUDA] -
Snake Serp - 07.02.2012
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;
}
Respuesta: Re: [AYUDA] -
Shoock[K] - 07.02.2012
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?
Re: [AYUDA] Asignar Coche a miembro -
Snake Serp - 07.02.2012
Add mi MSN quй ayudo \/
Respuesta: [AYUDA] Asignar Coche a miembro -
Shoock[K] - 20.02.2012
Prefiero que me ayuden por aqui , gracias igual
їAlguien mas si me puede ayudar?