- 0
rainbow car problema
-
Similar Content
-
- 1 reply
- 119 views
-
- 2 answers
- 936 views
-
Problema turf
By Soryn.,
- 3 answers
- 481 views
-
- 0 replies
- 209 views
-
- 2 replies
- 399 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
caltabos
Am adaugat intr-un sistem rainbow sa se poata cumpara din comanda /v, dar il cumpar si cand dau comanda /rainbow imi spune ca nu este unul rainbow! (In Baza arata Rainbow = 1)
} CMD:stoprainbow(playerid, params[]) { new carid; if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_GREEN, "Nu esti intr-un vehicul"); ------> AICI ESTE VERIFICAREA if(CarInfo[carid][cRainbow] == 0) return SCM(playerid, -1, "Acest vehicul nu este unul Rainbow!"); if(rainbowon[playerid] == 1) { new vehid = GetPlayerVehicleID(playerid); ChangeVehicleColor(vehid, DealerCarColor1[playerid], DealerCarColor2[playerid]); rainbowtimer[playerid] = KillTimer(rainbowtimer[playerid]); rainbowon[playerid] = 0; SCM(playerid, COLOR_GREEN, "The rainbow is disable"); } else { SCM(playerid, COLOR_GREEN, "The rainbow is already disable"); } return 1; } CMD:rainbow(playerid, params[]) { new carid; if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_GREEN, "Nu esti intr-un vehicul"); ------> AICI ESTE VERIFICAREA if(CarInfo[carid][cRainbow] == 0) return SCM(playerid, -1, "Acest vehicul nu este unul Rainbow!"); if(rainbowon[playerid] == 0) { new color1, color2; GetVehicleColor(GetPlayerVehicleID(playerid), color1, color2); DealerCarColor1[playerid] = color1; DealerCarColor2[playerid] = color2; Rainbow(playerid); rainbowon[playerid] = 1; SCM(playerid, COLOR_GREEN, "The rainbow is activated"); } else { SCM(playerid, COLOR_GREEN, "The rainbow is already activated"); } return 1; }
Si de aici il cumperi! (NU CRED CA ARE NICI O PROBLEMA AICI, DAR POATE VA AJUTA!!)
} case 9: { if(CarInfo[vsid][Spawned] == 0) return SendClientMessage(playerid, COLOR_LGREEN, "Eroare: Vehiculul tau nu este spawnat!"); if(CarInfo[vsid][cRainbow] == 1) return SCM(playerid, -1, "Acest vehicul este deja unul Rainbow!"); if(PlayerInfo[playerid][pPremiumPoints] < 50) return SCM(playerid, -1, "Nu ai destule puncte premium."); SetPVarInt(playerid, "VehicleID", vsid); ShowPlayerDialog(playerid, DIALOG_UPGRADERAINBOW, DIALOG_STYLE_MSGBOX, "Upgrade to Rainbow Vehicle", "Esti sigur ca vrei sa faci acest lucru?\nVei pierde 50 puncte premium.", "Da", "Nu"); }
} case DIALOG_UPGRADERAINBOW: { if(!response) return 1; new idd = GetPVarInt(playerid, "VehicleID"); if(CarInfo[idd][Spawned] == 0) return SendClientMessage(playerid, COLOR_LGREEN, "Eroare: Vehiculul tau nu este spawnat!"); if(CarInfo[idd][cRainbow] == 1) return SCM(playerid, -1, "Acest vehicul este deja unul Rainbow!"); if(PlayerInfo[playerid][pPremiumPoints] < 50) return SCM(playerid, -1, "Nu ai destule puncte premium."); PlayerInfo[playerid][pPremiumPoints] -= 50; Update(playerid, pPremiumPointsx); SCM(playerid, COLOR_YELLOW, "* Felicitari! Ti-ai upgradat cu succes vehiculul la unul Rainbow."); format(string, sizeof(string), "%s si-a upgradat vehiculul %s[id: %d] la unul Rainbow pentru 50 puncte premium.", GetName(playerid), aVehicleNames[CarInfo[idd][cModel]-400], idd); InsertLog(playerid, string, LOG_SHOP); format(string, sizeof(string), "UPDATE `cars` SET `Rainbow`='1' WHERE `ID`='%d'", idd); mysql_query(SQL, string); }
Link to comment
Share on other sites
10 answers 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.