- 0
Neon sistem
-
Similar Content
-
- 0 replies
- 328 views
-
- 2 answers
- 2.745 views
-
- 4 replies
- 939 views
-
- 0 replies
- 413 views
-
- 15 replies
- 8.969 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
Cordyandrey
Salutare, incerc sa pun restrictii la sistemul de neon, adica sa nu poata sa bage neon si pe barca, bicicleta, motor etc eu am incercat sa fac doar ca nu prea stiu cu ce sa inlocuiesc GetClosestVehicle2 da.. stiu ca inseamna sa-i dea cel mai aropiat vehicul, ma poate ajuta cnv cu asta?
case DIALOG_BUYNEON: {
if(!response) return 1;
new vehicleid = GetPlayerVehicleID(playerid);
new carid = FindSpawnID(vehicleid);
new vidd = GetClosestVehicle2(playerid);
if(IsABike2(vidd) || IsABike(vidd) || IsAPlane(vidd) || IsAPlane2(vidd) || IsABoat(vidd) || IsABoat2(vidd)) return SCM(playerid,-1, "Nu poti pune neon pe acest vehicul!");
if(carid == 0) return SCM(playerid, COLOR_CLIENT, "A aparut o EROARE! Incearca mai tarziu...");
if(CarInfo[carid][cNeon] != 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai deja un neon cumparat. Pentru a-l schimba, foloseste /changeneon.");
switch(listitem) {
case 0: {
neon[0][vehicleid] = CreateDynamicObject(18648,0,0,0,0,0,0);
neon[1][vehicleid] = CreateDynamicObject(18648,0,0,0,0,0,0);
}
case 1: {
neon[0][vehicleid] = CreateDynamicObject(18649,0,0,0,0,0,0);
neon[1][vehicleid] = CreateDynamicObject(18649,0,0,0,0,0,0);
}
case 2: {
neon[0][vehicleid] = CreateDynamicObject(18650,0,0,0,0,0,0);
neon[1][vehicleid] = CreateDynamicObject(18650,0,0,0,0,0,0);
}
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now