Ionut_WS

Membru Nou
  • Număr conținut

    9
  • Înregistrat

  • Ultima Vizită

Reputație Comunitate

0 Neutru

Despre Ionut_WS

  • Rang
    Începător

Profile Information

  • Sex
  • Nivel de cunoştinţe
    Mediu
  1. Posibil sa nu fie organizate bine in baza de date probabil la "stock", daca le organizezi bine acolo trebuie sa modifici si la "DIALOG_CARBUY", presupun ca asa il ai, daca nu, modifici unde raspunde la tine dialogului de la /buycar preturile masinilor. Ar trebuii sa mearga si eu am avut poroblema. Uite tebelul "stock" pe care il folosesc eu http://www.girlshare.ro/3489765337.3 .
  2. Poti cauta pe Google un gamemode daca chiar vrei unul, cat de spre conectarea lui la server nu vad ce este asa greu sa scri in server.cfg gamemode0 nume 1 , daca iei unul cu baza de date vei avea nevoie de xamp ca sa il pornesti localhost, sunt ogramada de tutoriale pe youtube.
  3. Multumesc de ajutor, am rezolvat problema.
  4. E deja facut, de asta si cer ajutor cum sa rezolv.
  5. Deobicei se intampla asta cand dai towcar la masina, uite codul: public TowCar(car,car2,playerid) { if(gPlayerLogged[playerid] == 1) { new engine,lights,alarm,doors,bonnet,boot,objective; if(GetPlayerCash(playerid) > 5000) { if(CarTow(car)) { RespawnPVeh(car,playerid); vehEngine[car] = 0; GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(car,VEHICLE_PARAMS_OFF,lights,alarm,CarInfo[car2][cLock],bonnet,boot,objective); Update(playerid, pCashx); new string[128]; new vehicles = GetVehicleModel(car) - 400; format(string,128,"Your %s was towed.", aVehicleNames[vehicles]); SendClientMessage(playerid,COLOR_WHITE,string); if(CarInfo[OwnedVeh(car)][cVip] > 0) { if(GetVehicleModel(car) == 560 || GetVehicleModel(car) == 541 || GetVehicleModel(car) == 411 || GetVehicleModel(car) == 451 || GetVehicleModel(car) == 596) { if(CarInfo[OwnedVeh(car)][cVipname] > 0) { DestroyObject(CarInfo[car][cObjects][1]); new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(car, vehx, vehy, vehz); CarInfo[car][cObjects][1] = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz); CarInfo[car][cName] = 1; format(string, sizeof(string), "{%s}%s",CarInfo[OwnedVeh(car)][cVipnamecolor], CarInfo[OwnedVeh(car)][cVipname]); SetObjectMaterialText(CarInfo[car][cObjects][1], string, 0, 50, "Arial", 15, 1, 0xFFFFFFFF, 0, 1); if(GetVehicleModel(car) == 411) { AttachObjectToVehicle(CarInfo[car][cObjects][1], car, 0.0, -1.9, 0.26, 270.0, 0.0, 0.0); } else if(GetVehicleModel(car) == 541) { AttachObjectToVehicle(CarInfo[car][cObjects][1], car, 0.000000, -1.634998, 0.394999, -78.364997, 0.000000, 0.000000); } else if(GetVehicleModel(car) == 560) { AttachObjectToVehicle(CarInfo[car][cObjects][1], car, 0.0, -1.9, 0.40, 270.0, 0.0, 0.0); } else if(GetVehicleModel(car) == 451) { AttachObjectToVehicle(CarInfo[car][cObjects][1], car, 0.0, -2.2, 0.1985, 270.0, 0.0, 0.0); } else if(GetVehicleModel(car) == 596) { AttachObjectToVehicle(CarInfo[car][cObjects][1], car, 0.0, -2.4, 0.27, 278.0, 0.0, 0.0); } } } } else if(CarInfo[OwnedVeh(car)][cVip] < 1) { DestroyObject(CarInfo[car][cObjects][1]); CarInfo[car][cName] = 0; } } else return SendClientMessage(playerid,COLOR_WHITE,"{FFB870}Car is in use."); } else return SendClientMessage(playerid, COLOR_WHITE,"{FFB870}You don't have enough money."); } return 1; }
  6. public OnVehicleSpawn(vehicleid) { if(!IsAnOwnableCar(vehicleid)) { Gas[vehicleid] = 100; } else { new engine,lights,alarm,doors,bonnet,boot,objective; if(CarInfo[OwnedVeh(vehicleid)][cLock] == 1) { GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,engine,lights,alarm,1,bonnet,boot,objective); } if(CarInfo[OwnedVeh(vehicleid)][cLock] == 0) { GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,engine,lights,alarm,0,bonnet,boot,objective); } ChangeVehiclePaintjob(vehicleid, CarInfo[OwnedVeh(vehicleid)][cPaintJ]); ModVehicle(vehicleid); SetVehicleNumberPlate(vehicleid,CarInfo[OwnedVeh(vehicleid)][cLicense]); vUpdate(OwnedVeh(vehicleid), cKMx); } vehRadio[vehicleid] = 0; return 1; } Nu are legatura cu vipname-ul, dar il pun, mersi ca incerci sa ma ajuti.
  7. Krusher ai vreo idee la intrebarea mea ?
  8. Daca l-ai mai compilat pana acum si nu ai avut probleme probabil ai uitat sa inchizi o "}" sau "{" pe undeva, incearca sa te uiti unde ai modificat ultima data ceva, poate ai uitat o acolada.
  9. Deci problema apare dupa 3 sau 4 ore de cand se restarteaza serverul, vipname-ul de pe o masina dispare cand se spawneaza o alta masina cu vipname masina, in acele 3 sau 4 ore totul merge bine, vipname-urile se pun bine, singura problema este ca dispare vipname ul de pe o masina cand se spawneaza alta. Cine are idee cum sa rezolv ii multumesc pentru orice sugestie. Comanda: CMD:vipname(playerid, params[]) { if(IsPlayerConnected(playerid)) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not in your vehicle."); new getcarid; getcarid = GetPlayerVehicleID(playerid); if(getcarid == personalcar[0][playerid] || getcarid == personalcar[1][playerid] || getcarid == personalcar[2][playerid] || getcarid == personalcar[3][playerid] || getcarid == personalcar[4][playerid] || getcarid == personalcar[5][playerid] || getcarid == personalcar[6][playerid] || getcarid == personalcar[7][playerid] || getcarid == personalcar[8][playerid] || getcarid == personalcar[9][playerid]) { if(getcarid == personalcar[0][playerid]) { new carid = PlayerInfo[playerid][pPcarkey]; if(CarInfo[carid][cVip] < 1) return SendClientMessage(playerid, COLOR_WHITE,"This vehicle is not Vip."); new text[15]; if(sscanf(params, "s[15]",text)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/vipname <text>"); if(!(GetVehicleModel(getcarid) == 560 || GetVehicleModel(getcarid) == 541 || GetVehicleModel(getcarid) == 411 || GetVehicleModel(getcarid) == 451 || GetVehicleModel(getcarid) == 596)) return SendClientMessage(playerid, COLOR_WHITE,"You are not in a Infernus/Bullet/Sultan/Turismo."); DestroyObject(CarInfo[getcarid][cObjects][1]); new string[128],string1[128]; new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(getcarid, vehx, vehy, vehz); CarInfo[getcarid][cObjects][1] = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz); format(string1, sizeof(string1), "Text-ul pentru vehicul setat: %s", text); SendClientMessage(playerid, COLOR_WHITE, string1); CarInfo[getcarid][cName] = 1; X by Counterflix format(string, sizeof(string), "{%s}%s",CarInfo[carid][cVipnamecolor], text); SetObjectMaterialText(CarInfo[getcarid][cObjects][1], string, 0, 50, "Arial", 15, 1, 0xFFFFFFFF, 0, 1); if(GetVehicleModel(getcarid) == 411) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.26, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 541) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.000000, -1.634998, 0.394999, -78.364997, 0.000000, 0.000000); } else if(GetVehicleModel(getcarid) == 560) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.40, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 451) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.2, 0.1985, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 596) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.4, 0.27, 278.0, 0.0, 0.0); } strmid(CarInfo[OwnedVeh(getcarid)][cVipname], text, 0, strlen(text), 999); new string2[184]; mysql_format(SQL, string2, sizeof(string2), "UPDATE cars SET `Vipname`='%s' WHERE `ID`='%d'",text,CarInfo[carid][cID]); mysql_tquery(SQL,string2,"",""); } else if(getcarid == personalcar[1][playerid]) { new carid = PlayerInfo[playerid][pmotokey]; if(CarInfo[carid][cVip] < 1) return SendClientMessage(playerid, COLOR_WHITE,"This vehicle is not Vip."); new text[15]; if(sscanf(params, "s[15]",text)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/vipname <text>"); if(!(GetVehicleModel(getcarid) == 560 || GetVehicleModel(getcarid) == 541 || GetVehicleModel(getcarid) == 411 || GetVehicleModel(getcarid) == 451 || GetVehicleModel(getcarid) == 596)) return SendClientMessage(playerid, COLOR_WHITE,"You are not in a Infernus/Bullet/Sultan/Turismo."); DestroyObject(CarInfo[getcarid][cObjects][1]); new string[128],string1[128]; new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(getcarid, vehx, vehy, vehz); CarInfo[getcarid][cObjects][1] = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz); format(string1, sizeof(string1), "Text-ul pentru vehicul setat: %s", text); SendClientMessage(playerid, COLOR_WHITE, string1); CarInfo[getcarid][cName] = 1; X by Counterflix format(string, sizeof(string), "{%s}%s",CarInfo[carid][cVipnamecolor], text); SetObjectMaterialText(CarInfo[getcarid][cObjects][1], string, 0, 50, "Arial", 15, 1, 0xFFFFFFFF, 0, 1); if(GetVehicleModel(getcarid) == 411) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.26, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 541) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.000000, -1.634998, 0.394999, -78.364997, 0.000000, 0.000000); } else if(GetVehicleModel(getcarid) == 560) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.40, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 451) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.2, 0.1985, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 596) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.4, 0.27, 278.0, 0.0, 0.0); } strmid(CarInfo[OwnedVeh(getcarid)][cVipname], text, 0, strlen(text), 999); new string2[184]; mysql_format(SQL, string2, sizeof(string2), "UPDATE cars SET `Vipname`='%s' WHERE `ID`='%d'",text,CarInfo[carid][cID]); mysql_tquery(SQL,string2,"",""); } else if(getcarid == personalcar[2][playerid]) { new carid = PlayerInfo[playerid][pprcarkey]; if(CarInfo[carid][cVip] < 1) return SendClientMessage(playerid, COLOR_WHITE,"This vehicle is not Vip."); new text[15]; if(sscanf(params, "s[15]",text)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/vipname <text>"); if(!(GetVehicleModel(getcarid) == 560 || GetVehicleModel(getcarid) == 541 || GetVehicleModel(getcarid) == 411 || GetVehicleModel(getcarid) == 451 || GetVehicleModel(getcarid) == 596)) return SendClientMessage(playerid, COLOR_WHITE,"You are not in a Infernus/Bullet/Sultan/Turismo."); DestroyObject(CarInfo[getcarid][cObjects][1]); new string[128],string1[128]; new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(getcarid, vehx, vehy, vehz); CarInfo[getcarid][cObjects][1] = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz); format(string1, sizeof(string1), "Text-ul pentru vehicul setat: %s", text); SendClientMessage(playerid, COLOR_WHITE, string1); CarInfo[getcarid][cName] = 1; X by Counterflix format(string, sizeof(string), "{%s}%s",CarInfo[carid][cVipnamecolor], text); SetObjectMaterialText(CarInfo[getcarid][cObjects][1], string, 0, 50, "Arial", 15, 1, 0xFFFFFFFF, 0, 1); if(GetVehicleModel(getcarid) == 411) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.26, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 541) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.000000, -1.634998, 0.394999, -78.364997, 0.000000, 0.000000); } else if(GetVehicleModel(getcarid) == 560) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.40, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 451) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.2, 0.1985, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 596) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.4, 0.27, 278.0, 0.0, 0.0); } strmid(CarInfo[OwnedVeh(getcarid)][cVipname], text, 0, strlen(text), 999); new string2[184]; mysql_format(SQL, string2, sizeof(string2), "UPDATE cars SET `Vipname`='%s' WHERE `ID`='%d'",text,CarInfo[carid][cID]); mysql_tquery(SQL,string2,"",""); } else if(getcarid == personalcar[3][playerid]) { new carid = PlayerInfo[playerid][pprcarkey2]; if(CarInfo[carid][cVip] < 1) return SendClientMessage(playerid, COLOR_WHITE,"This vehicle is not Vip."); new text[15]; if(sscanf(params, "s[15]",text)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/vipname <text>"); if(!(GetVehicleModel(getcarid) == 560 || GetVehicleModel(getcarid) == 541 || GetVehicleModel(getcarid) == 411 || GetVehicleModel(getcarid) == 451 || GetVehicleModel(getcarid) == 596)) return SendClientMessage(playerid, COLOR_WHITE,"You are not in a Infernus/Bullet/Sultan/Turismo."); DestroyObject(CarInfo[getcarid][cObjects][1]); new string[128],string1[128]; new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(getcarid, vehx, vehy, vehz); CarInfo[getcarid][cObjects][1] = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz); format(string1, sizeof(string1), "Text-ul pentru vehicul setat: %s", text); SendClientMessage(playerid, COLOR_WHITE, string1); CarInfo[getcarid][cName] = 1; format(string, sizeof(string), "{%s}%s",CarInfo[carid][cVipnamecolor], text); SetObjectMaterialText(CarInfo[getcarid][cObjects][1], string, 0, 50, "Arial", 15, 1, 0xFFFFFFFF, 0, 1); if(GetVehicleModel(getcarid) == 411) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.26, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 541) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.000000, -1.634998, 0.394999, -78.364997, 0.000000, 0.000000); } else if(GetVehicleModel(getcarid) == 560) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.40, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 451) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.2, 0.1985, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 596) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.4, 0.27, 278.0, 0.0, 0.0); } strmid(CarInfo[OwnedVeh(getcarid)][cVipname], text, 0, strlen(text), 999); new string2[184]; mysql_format(SQL, string2, sizeof(string2), "UPDATE cars SET `Vipname`='%s' WHERE `ID`='%d'",text,CarInfo[carid][cID]); mysql_tquery(SQL,string2,"",""); } else if(getcarid == personalcar[4][playerid]) { new carid = PlayerInfo[playerid][pPluscarkey]; if(CarInfo[carid][cVip] < 1) return SendClientMessage(playerid, COLOR_WHITE,"This vehicle is not Vip."); new text[15]; if(sscanf(params, "s[15]",text)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/vipname <text>"); if(!(GetVehicleModel(getcarid) == 560 || GetVehicleModel(getcarid) == 541 || GetVehicleModel(getcarid) == 411 || GetVehicleModel(getcarid) == 451 || GetVehicleModel(getcarid) == 596)) return SendClientMessage(playerid, COLOR_WHITE,"You are not in a Infernus/Bullet/Sultan/Turismo."); DestroyObject(CarInfo[getcarid][cObjects][1]); new string[128],string1[128]; new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(getcarid, vehx, vehy, vehz); CarInfo[getcarid][cObjects][1] = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz); format(string1, sizeof(string1), "Text-ul pentru vehicul setat: %s", text); SendClientMessage(playerid, COLOR_WHITE, string1); CarInfo[getcarid][cName] = 1; format(string, sizeof(string), "{%s}%s",CarInfo[carid][cVipnamecolor], text); SetObjectMaterialText(CarInfo[getcarid][cObjects][1], string, 0, 50, "Arial", 15, 1, 0xFFFFFFFF, 0, 1); if(GetVehicleModel(getcarid) == 411) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.26, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 541) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.000000, -1.634998, 0.394999, -78.364997, 0.000000, 0.000000); } else if(GetVehicleModel(getcarid) == 560) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.40, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 451) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.2, 0.1985, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 596) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.4, 0.27, 278.0, 0.0, 0.0); } strmid(CarInfo[OwnedVeh(getcarid)][cVipname], text, 0, strlen(text), 999); new string2[184]; mysql_format(SQL, string2, sizeof(string2), "UPDATE cars SET `Vipname`='%s' WHERE `ID`='%d'",text,CarInfo[carid][cID]); mysql_tquery(SQL,string2,"",""); } else if(getcarid == personalcar[5][playerid]) { new carid = PlayerInfo[playerid][pPluscarkey2]; if(CarInfo[carid][cVip] < 1) return SendClientMessage(playerid, COLOR_WHITE,"This vehicle is not Vip."); new text[15]; if(sscanf(params, "s[15]",text)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/vipname <text>"); if(!(GetVehicleModel(getcarid) == 560 || GetVehicleModel(getcarid) == 541 || GetVehicleModel(getcarid) == 411 || GetVehicleModel(getcarid) == 451 || GetVehicleModel(getcarid) == 596)) return SendClientMessage(playerid, COLOR_WHITE,"You are not in a Infernus/Bullet/Sultan/Turismo."); DestroyObject(CarInfo[getcarid][cObjects][1]); new string[128],string1[128]; new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(getcarid, vehx, vehy, vehz); CarInfo[getcarid][cObjects][1] = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz); format(string1, sizeof(string1), "Text-ul pentru vehicul setat: %s", text); SendClientMessage(playerid, COLOR_WHITE, string1); CarInfo[getcarid][cName] = 1; format(string, sizeof(string), "{%s}%s",CarInfo[carid][cVipnamecolor], text); SetObjectMaterialText(CarInfo[getcarid][cObjects][1], string, 0, 50, "Arial", 15, 1, 0xFFFFFFFF, 0, 1); if(GetVehicleModel(getcarid) == 411) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.26, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 541) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.000000, -1.634998, 0.394999, -78.364997, 0.000000, 0.000000); } else if(GetVehicleModel(getcarid) == 560) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.40, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 451) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.2, 0.1985, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 596) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.4, 0.27, 278.0, 0.0, 0.0); } strmid(CarInfo[OwnedVeh(getcarid)][cVipname], text, 0, strlen(text), 999); new string2[184]; mysql_format(SQL, string2, sizeof(string2), "UPDATE cars SET `Vipname`='%s' WHERE `ID`='%d'",text,CarInfo[carid][cID]); mysql_tquery(SQL,string2,"",""); } else if(getcarid == personalcar[6][playerid]) { new carid = PlayerInfo[playerid][pPluscarkey3]; if(CarInfo[carid][cVip] < 1) return SendClientMessage(playerid, COLOR_WHITE,"This vehicle is not Vip."); new text[15]; if(sscanf(params, "s[15]",text)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/vipname <text>"); if(!(GetVehicleModel(getcarid) == 560 || GetVehicleModel(getcarid) == 541 || GetVehicleModel(getcarid) == 411 || GetVehicleModel(getcarid) == 451 || GetVehicleModel(getcarid) == 596)) return SendClientMessage(playerid, COLOR_WHITE,"You are not in a Infernus/Bullet/Sultan/Turismo."); DestroyObject(CarInfo[getcarid][cObjects][1]); new string[128],string1[128]; new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(getcarid, vehx, vehy, vehz); CarInfo[getcarid][cObjects][1] = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz); format(string1, sizeof(string1), "Text-ul pentru vehicul setat: %s", text); SendClientMessage(playerid, COLOR_WHITE, string1); CarInfo[getcarid][cName] = 1; format(string, sizeof(string), "{%s}%s",CarInfo[carid][cVipnamecolor], text); SetObjectMaterialText(CarInfo[getcarid][cObjects][1], string, 0, 50, "Arial", 15, 1, 0xFFFFFFFF, 0, 1); if(GetVehicleModel(getcarid) == 411) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.26, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 541) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.000000, -1.634998, 0.394999, -78.364997, 0.000000, 0.000000); } else if(GetVehicleModel(getcarid) == 560) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.40, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 451) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.2, 0.1985, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 596) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.4, 0.27, 278.0, 0.0, 0.0); } strmid(CarInfo[OwnedVeh(getcarid)][cVipname], text, 0, strlen(text), 999); new string2[184]; mysql_format(SQL, string2, sizeof(string2), "UPDATE cars SET `Vipname`='%s' WHERE `ID`='%d'",text,CarInfo[carid][cID]); mysql_tquery(SQL,string2,"",""); } else if(getcarid == personalcar[7][playerid]) { new carid = PlayerInfo[playerid][pPluscarkey4]; if(CarInfo[carid][cVip] < 1) return SendClientMessage(playerid, COLOR_WHITE,"This vehicle is not Vip."); new text[15]; if(sscanf(params, "s[15]",text)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/vipname <text>"); if(!(GetVehicleModel(getcarid) == 560 || GetVehicleModel(getcarid) == 541 || GetVehicleModel(getcarid) == 411 || GetVehicleModel(getcarid) == 451 || GetVehicleModel(getcarid) == 596)) return SendClientMessage(playerid, COLOR_WHITE,"You are not in a Infernus/Bullet/Sultan/Turismo."); DestroyObject(CarInfo[getcarid][cObjects][1]); new string[128],string1[128]; new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(getcarid, vehx, vehy, vehz); CarInfo[getcarid][cObjects][1] = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz); format(string1, sizeof(string1), "Text-ul pentru vehicul setat: %s", text); SendClientMessage(playerid, COLOR_WHITE, string1); CarInfo[getcarid][cName] = 1; format(string, sizeof(string), "{%s}%s",CarInfo[carid][cVipnamecolor], text); SetObjectMaterialText(CarInfo[getcarid][cObjects][1], string, 0, 50, "Arial", 15, 1, 0xFFFFFFFF, 0, 1); if(GetVehicleModel(getcarid) == 411) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.26, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 541) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.000000, -1.634998, 0.394999, -78.364997, 0.000000, 0.000000); } else if(GetVehicleModel(getcarid) == 560) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.40, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 451) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.2, 0.1985, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 596) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.4, 0.27, 278.0, 0.0, 0.0); } strmid(CarInfo[OwnedVeh(getcarid)][cVipname], text, 0, strlen(text), 999); new string2[184]; mysql_format(SQL, string2, sizeof(string2), "UPDATE cars SET `Vipname`='%s' WHERE `ID`='%d'",text,CarInfo[carid][cID]); mysql_tquery(SQL,string2,"",""); } else if(getcarid == personalcar[8][playerid]) { new carid = PlayerInfo[playerid][pPluscarkey5]; if(CarInfo[carid][cVip] < 1) return SendClientMessage(playerid, COLOR_WHITE,"This vehicle is not Vip."); new text[15]; if(sscanf(params, "s[15]",text)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/vipname <text>"); if(!(GetVehicleModel(getcarid) == 560 || GetVehicleModel(getcarid) == 541 || GetVehicleModel(getcarid) == 411 || GetVehicleModel(getcarid) == 451 || GetVehicleModel(getcarid) == 596)) return SendClientMessage(playerid, COLOR_WHITE,"You are not in a Infernus/Bullet/Sultan/Turismo."); DestroyObject(CarInfo[getcarid][cObjects][1]); new string[128],string1[128]; new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(getcarid, vehx, vehy, vehz); CarInfo[getcarid][cObjects][1] = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz); format(string1, sizeof(string1), "Text-ul pentru vehicul setat: %s", text); SendClientMessage(playerid, COLOR_WHITE, string1); CarInfo[getcarid][cName] = 1; format(string, sizeof(string), "{%s}%s",CarInfo[carid][cVipnamecolor], text); SetObjectMaterialText(CarInfo[getcarid][cObjects][1], string, 0, 50, "Arial", 15, 1, 0xFFFFFFFF, 0, 1); if(GetVehicleModel(getcarid) == 411) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.26, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 541) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.000000, -1.634998, 0.394999, -78.364997, 0.000000, 0.000000); } else if(GetVehicleModel(getcarid) == 560) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.40, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 451) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.2, 0.1985, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 596) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.4, 0.27, 278.0, 0.0, 0.0); } strmid(CarInfo[OwnedVeh(getcarid)][cVipname], text, 0, strlen(text), 999); new string2[184]; mysql_format(SQL, string2, sizeof(string2), "UPDATE cars SET `Vipname`='%s' WHERE `ID`='%d'",text,CarInfo[carid][cID]); mysql_tquery(SQL,string2,"",""); } else if(getcarid == personalcar[9][playerid]) { new carid = PlayerInfo[playerid][pPluscarkey6]; if(CarInfo[carid][cVip] < 1) return SendClientMessage(playerid, COLOR_WHITE,"This vehicle is not Vip."); new text[15]; if(sscanf(params, "s[15]",text)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/vipname <text>"); if(!(GetVehicleModel(getcarid) == 560 || GetVehicleModel(getcarid) == 541 || GetVehicleModel(getcarid) == 411 || GetVehicleModel(getcarid) == 451 || GetVehicleModel(getcarid) == 596)) return SendClientMessage(playerid, COLOR_WHITE,"You are not in a Infernus/Bullet/Sultan/Turismo."); DestroyObject(CarInfo[getcarid][cObjects][1]); new string[128],string1[128]; new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(getcarid, vehx, vehy, vehz); CarInfo[getcarid][cObjects][1] = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz); format(string1, sizeof(string1), "Text-ul pentru vehicul setat: %s", text); SendClientMessage(playerid, COLOR_WHITE, string1); CarInfo[getcarid][cName] = 1; format(string, sizeof(string), "{%s}%s",CarInfo[carid][cVipnamecolor], text); SetObjectMaterialText(CarInfo[getcarid][cObjects][1], string, 0, 50, "Arial", 15, 1, 0xFFFFFFFF, 0, 1); if(GetVehicleModel(getcarid) == 411) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.26, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 541) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.000000, -1.634998, 0.394999, -78.364997, 0.000000, 0.000000); } else if(GetVehicleModel(getcarid) == 560) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -1.9, 0.40, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 451) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.2, 0.1985, 270.0, 0.0, 0.0); } else if(GetVehicleModel(getcarid) == 596) { AttachObjectToVehicle(CarInfo[getcarid][cObjects][1], getcarid, 0.0, -2.4, 0.27, 278.0, 0.0, 0.0); } strmid(CarInfo[OwnedVeh(getcarid)][cVipname], text, 0, strlen(text), 999); new string2[184]; mysql_format(SQL, string2, sizeof(string2), "UPDATE cars SET `Vipname`='%s' WHERE `ID`='%d'",text,CarInfo[carid][cID]); mysql_tquery(SQL,string2,"",""); } } } return 1; }