06.02.2011, 13:17
(
Последний раз редактировалось Helius; 06.02.2011 в 20:09.
)
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:
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
![sad](images/smilies/sad.gif)
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! [ * ] ");