Help with neons - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with neons (
/showthread.php?tid=221978)
I need help with neons -
Helius - 06.02.2011
A have in my GM this neon script:
https://sampforum.blast.hk/showthread.php?tid=218244
I am little edited it, but I don't know:
1. how to destroy all neons when car is destroyed and respawn
2. how to make command for destroying all neons
3. if player leave destroy all his maked neons
If player make neons he can destroy it, but if he leave (or his game crash) and anyone try destroy his neons it's not possible.
And i try solve my problems here but without success
https://sampforum.blast.hk/showthread.php?pid=1041972#pid1041972
Here is code:
Код:
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
if(GetPlayerMoney(playerid) >= 9999){
GivePlayerMoney(playerid,-10000);
SCM(playerid, COLOR_GREEN, "[ * ] Blue neon installed! [-10000$] [ * ]");
} else {
SCM(playerid, B_CERVENA, " [ * ] You dont have enough money! [ * ] ");
Re: I need help with neons -
Helius - 06.02.2011
can anyone help me please?
Re: Help with neons -
Helius - 08.02.2011
please
Re: Help with neons -
Janek17 - 08.02.2011
Make the new command whit /destroyneon ?
Show more code, then i can help you!