Coches para admin - 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: Coches para admin (
/showthread.php?tid=154003)
Coches para admin -
RatHack - 11.06.2010
Hoola de nuevo xD
aora ando buscando como poner coches solo para admins, apartir del level 1 para todos los admins, uso el V-Admin
Alguien lo sabee?
Gracias
Re: Coches para admin -
TheChaoz - 11.06.2010
podes usar esto como ejemplo:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER){
new Pveh;
Pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
if(Pveh == 520 || Pveh == 425 || Pveh == 432 || Pveh == 447){
if(PlayerInfo[playerid][Level] == 0){
RemovePlayerFromVehicle(playerid);
return SendClientMessage(playerid, COLOR_RED, "Este vehiculo es solo para administradores");
}
}
}
return 1;
}
Re: Coches para admin -
RatHack - 11.06.2010
ok grax, pero donde pongo la id y las coordenadas del coche?
Re: Coches para admin -
ConecCionMex - 11.06.2010
Quote:
Originally Posted by Rat_
ok grax, pero donde pongo la id y las coordenadas del coche?
|
Код:
if(Pveh == 520 || Pveh == 425 || Pveh == 432 || Pveh == 447){
esas son las ID
Re: Coches para admin -
MedinaRockz - 11.06.2010
Quote:
Originally Posted by the_chaoz
podes usar esto como ejemplo:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER){ new Pveh; Pveh = GetVehicleModel(GetPlayerVehicleID(playerid)); [color=red]if(Pveh == 520 || Pveh == 425 || Pveh == 432 || Pveh == 447)[/color]{ if(PlayerInfo[playerid][Level] == 0){ RemovePlayerFromVehicle(playerid); return SendClientMessage(playerid, COLOR_RED, "Este vehiculo es solo para administradores"); } } } return 1; }
|
eso es por defecto o esos son hunter, hydra, seasparrow etc.
Re: Coches para admin -
RatHack - 11.06.2010
No tengo esta linea en mi gamemode :
OnPlayerStateChange(playerid, newstate, oldstate)
y las coordenadas de donde estan los vehiculos?
Re: Coches para admin -
MedinaRockz - 11.06.2010
Agregaselo -.-
Re: Coches para admin -
RatHack - 11.06.2010
y las coordenadas de donde estan los veh?
Re: Coches para admin -
ConecCionMex - 11.06.2010
Quote:
Originally Posted by Rat_
No tengo esta linea en mi gamemode :
OnPlayerStateChange(playerid, newstate, oldstate)
y las coordenadas de donde estan los vehiculos?
|
no se ncecesitan cordenada para definir el vehiculo con qe pongas el ID de auto checara qe es para admisn jaja
Re: Coches para admin -
RatHack - 11.06.2010
pero si yo kiero poner solo unos cuantos coches solo para admins?