SA-MP Forums Archive
[Ajuda] OnVehicleSpawn - 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: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] OnVehicleSpawn (/showthread.php?tid=389623)



OnVehicleSpawn - Maklister - 02.11.2012

Olб

Bom, quando um veiculo spawna normalmente o neon fica no chao, eu queria que destruisse o neon mais nгo esta

PHP код:
public OnVehicleSpawn(vehicleid)
{
    
DestroyObject(GetPVarInt(vehicleid"neon"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon1"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon2"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon3"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon4"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon5"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon6"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon7"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon8"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon9"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon10"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon11"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon12"));
    
DeletePVar(vehicleid"Status");
    
DestroyObject(GetPVarInt(vehicleid"neon13"));
    
DeletePVar(vehicleid"Status");
    return 
1;




Re: OnVehicleSpawn - Victor' - 02.11.2012

Tem que refazer o sistema inteiro, pois estб deletando as variбveis de jogadores, nгo de veнculos...