- 0
Neon sistem
-
Similar Content
-
- 0 replies
- 88 views
-
- 5 replies
- 729 views
-
- 5 replies
- 358 views
-
- 4 replies
- 311 views
-
- 3 replies
- 422 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);
}
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.