Jump to content

KiLLeR1122

Membru
  • Posts

    64
  • Joined

  • Last visited

    Never

KiLLeR1122's Achievements

Enthusiast

Enthusiast (6/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. SI CE AI VREA SA POSTEZ DACA ARATA DOAR MAGARII CA SI CUM AR FI DE EXEMPLU DE LA JOC SAU DE LA PLACA VIDEO CE COMANDA VREI SA ITI POSTEZ?
  2. Cand scriu comanda /acreatecar imi scrie pana nu imi umple chatu ! Si cand creez masina imi se blocheaza merge in lag imens si arata foarte urat nu te mai poti misca nimic.
  3. SAVE: [pawn]/*----------Car Save Functions----------*/ PUBLIC: LoadCar() { new arrCoords[31][64]; new strFromFile2[256]; new File: file = fopen("personalcars.cfg", io_read); if (file) { new idx = carsonserver; while (idx < sizeof(CarInfo)) { fread(file, strFromFile2); split(strFromFile2, arrCoords, ','); CarInfo[idx][cModel] = strval(arrCoords[0]); CarInfo[idx][cLocationx] = floatstr(arrCoords[1]); CarInfo[idx][cLocationy] = floatstr(arrCoords[2]); CarInfo[idx][cLocationz] = floatstr(arrCoords[3]); CarInfo[idx][cAngle] = floatstr(arrCoords[4]); CarInfo[idx][cColorOne] = strval(arrCoords[5]); CarInfo[idx][cColorTwo] = strval(arrCoords[6]); strmid(CarInfo[idx][cOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255); strmid(CarInfo[idx][cDescription], arrCoords[8], 0, strlen(arrCoords[8]), 255); CarInfo[idx][cValue] = strval(arrCoords[9]); strmid(CarInfo[idx][cLicense], arrCoords[10], 0, strlen(arrCoords[10]), 255); CarInfo[idx][cOwned] = strval(arrCoords[11]); CarInfo[idx][cLock] = strval(arrCoords[12]); CarInfo[idx][mod1] = strval(arrCoords[13]); CarInfo[idx][mod2] = strval(arrCoords[14]); CarInfo[idx][mod3] = strval(arrCoords[15]); CarInfo[idx][mod4] = strval(arrCoords[16]); CarInfo[idx][mod5] = strval(arrCoords[17]); CarInfo[idx][mod6] = strval(arrCoords[18]); CarInfo[idx][mod7] = strval(arrCoords[19]); CarInfo[idx][mod8] = strval(arrCoords[20]); CarInfo[idx][mod9] = strval(arrCoords[21]); CarInfo[idx][mod10] = strval(arrCoords[22]); CarInfo[idx][mod11] = strval(arrCoords[23]); CarInfo[idx][mod12] = strval(arrCoords[24]); CarInfo[idx][mod13] = strval(arrCoords[25]); CarInfo[idx][mod14] = strval(arrCoords[26]); CarInfo[idx][mod15] = strval(arrCoords[27]); CarInfo[idx][mod16] = strval(arrCoords[28]); CarInfo[idx][mod17] = strval(arrCoords[29]); CarInfo[idx][paintjob] = strval(arrCoords[30]); printf("CarInfo: %d Owner:%s LicensePlate %s",idx,CarInfo[idx][cOwner],CarInfo[idx][cLicense]); idx++; } } return 1; } PUBLIC: SaveCarCoords() { new idx; new File: file2; while (idx < sizeof(CarInfo)) { new coordsstring[256]; format(coordsstring, sizeof(coordsstring), "%d|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d\n", CarInfo[idx][cModel], CarInfo[idx][cLocationx], CarInfo[idx][cLocationy], CarInfo[idx][cLocationz], CarInfo[idx][cAngle], CarInfo[idx][cColorOne], CarInfo[idx][cColorTwo], CarInfo[idx][mod1], CarInfo[idx][mod2], CarInfo[idx][mod3], CarInfo[idx][mod4], CarInfo[idx][mod5], CarInfo[idx][mod6], CarInfo[idx][mod7], CarInfo[idx][mod8], CarInfo[idx][mod9], CarInfo[idx][mod10], CarInfo[idx][mod11], CarInfo[idx][mod12], CarInfo[idx][mod13], CarInfo[idx][mod14], CarInfo[idx][mod15], CarInfo[idx][mod16], CarInfo[idx][mod17], CarInfo[idx][paintjob]); if(idx == carsonserver) { file2 = fopen("personalcars.cfg", io_write); } else { file2 = fopen("personalcars.cfg", io_append); } fwrite(file2, coordsstring); idx++; fclose(file2); } return 1; }[/pawn]
  4. Nu, un mod de cel mai apropiat update (gfzone) Ma poti ajuta?
  5. 1. Am o problema la masinile personale. Cand un player isi creeaza masina /buycar ii ia bani pe masina dar nu se salveaza in personalcars.cfg masina si la restart dispar. 2. Cum as putea face la comanda /cc sa nu se stearga chat-ul la admini. [pawn]if(strcmp(cmd, "/cc", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1) { ClearChatboxToAll(playerid,100); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "{FF8000}Ghotic GF-RP: {FF2C00}%s {FFFFFF}a sters chatul", sendername); SendClientMessageToAll(COLOR_LIGHTRED, string); } else { SendClientMessage(playerid, COLOR_GRAD2, "* Nu ai rangul administrativ neceas!"); return 1; } } return 1; }[/pawn] /buycar dealership [pawn]if (strcmp(cmd, "/buycar", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsAtDealership(playerid)) { if(PlayerInfo[playerid][pPcarkey] == -1) { } else { SendClientMessage(playerid, COLOR_GREY, " Ai deja 1 masina!!Daca vrei sa iti iei alta noua vinde-o pe cea actuala!"); return 1; } ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "* Lista masini .", "Infernus 1.000.000.$\nBullet 450.000$\nCheetah 900.000$\nTurismo 250.000$\nSupergt 200.000$\nBanshee 100.000$\nZR-350 80.000$\nElegy 81.000$\nJester 83.000$\nSultan 79.000$\nUranus 75.000$\nFlash 70.000$\nStratum 95.000$\nAlpha 68.000$ \n* Next","Cumpara", "Cancel"); } else { SendClientMessage(playerid, COLOR_WHITE,"* Nu esti la magazinul de masini."); } } return 1; }[/pawn]
  6. Nu ma ajuti in legatura cu un sistem bun sau care l-ai folosit sau un id de mess / skype. ?
  7. Problema e ca acest dealership functioneaza astfel: Mergi la checkpoint dai /buycar selectezi masina si te da in masina. Eu nu gasesc nici in personalcars.cfg masinile create de playeri, nu stiu unde sa le caut.
  8. Deci am un sistem de masini personale l-am integrat in GM functioneaza cu comanda buycar dar dupa ce cumpar masina de la acel "dealership" as vrea cand intra altcineva decat ownerul in ea sa scrie acest vehicul este al lui X si sa te dea jos din masina am cautat si in personalcars.cfg dar nu am gasit masina creeata desi eu am cumparat-o poate nu fac eu bine.
  9. Din cate am gasit nu are nici unde valoarea 1 !
  10. Am o problema , cand intri pe server nu conteaza de factiune iti arata 1 stea in dreapta dar la /stats la wanted e 0 deci nu se pune ca wanted dar steaua apare.
  11. 1. Am comanda /jail daca dau /jail 0 0 la stelele de la wanted dispar iar la /stats ramane wanted level 10 si wanted-ul ramane activ deoarece nu pot folosi nici comenzile deci raman cu wanted. 2. La comanda robbank ca sa imi apara 10 stele e bine daca pun functia: SetPlayerWantedLevel(giveplayerid, 10); ? 3. Cand intru automat pe server imi da wanted imi apar 1-2 stele. [pawn]if(strcmp(cmd, "/jail", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /jail [playerid/PartOfName] [time(minutes)]"); return 1; } new playa; new money; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); money = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 2) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You Jailed %s.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTRED, string); format(string, sizeof(string), "* You were Jailed by Admin %s.", sendername); SendClientMessage(playa, COLOR_LIGHTRED, string); ResetPlayerWeapons(playa); WantedPoints[playa] = 0; PlayerInfo[playa][pJailed] = 1; PlayerInfo[playa][pJailTime] = money*60; SetPlayerInterior(playa, 6); SetPlayerPos(playa, 264.6288,77.5742,1001.0391); format(string, sizeof(string), "You are jailed for %d minutes. Bail: Unable", money); SendClientMessage(playa, COLOR_LIGHTBLUE, string); } } } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } } return 1; }[/pawn]
  12. Scrie la inceputul gm-ului new PlayerInfo[MAX_PLAYERS][pInfo];
  13. Incearca: [pawn]if(strcmp(cmd, "/gethere", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00E6FF}UTILIZARE:{FFFFFF} /gethere [playerid/PartOfName]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); GetPlayerName(playerid,sendername,sizeof(sendername)); GetPlayerName(plo, giveplayer, sizeof(giveplayer)); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if(PlayerInfo[playerid][pInt] == 10 && PlayerInfo[playerid][pLocal] == 500) { SendClientMessage(playerid, COLOR_GRAD2, "You can`t use this command in this place"); return 1; } if(PlayerInfo[plo][pJailed] == 1) { SendClientMessage(playerid,COLOR_GREY," You can`t use this command on that player because is in jail !"); return 1; } if(WantedLevel[plo] >= 1) { SendClientMessage(playerid,COLOR_GREY," You can`t use this command on that player, is currently Wanted !"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1) { GetPlayerPos(playerid, plocx, plocy, plocz); if(PlayerInfo[playerid][pInt] > 0) { SetPlayerInterior(plo,PlayerInfo[playerid][pInt]); PlayerInfo[plo][pInt] = PlayerInfo[playerid][pInt]; PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal]; } if(PlayerInfo[playerid][pInt] == 0) { SetPlayerInterior(plo,0); } if(plocz > 930.0 && PlayerInfo[playerid][pInt] == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(plo,1); PlayerInfo[plo][pInt] = 1; } if (GetPlayerState(plo) == 2) { TelePos[plo][0] = 0.0; TelePos[plo][1] = 0.0; new tmpcar = GetPlayerVehicleID(plo); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); } else { SetPlayerPos(plo,plocx,plocy+2, plocz); } SetPlayerInterior(plo,GetPlayerInterior(playerid)); SetPlayerVirtualWorld(plo,GetPlayerVirtualWorld(playerid)); } else { SendClientMessage(playerid, COLOR_GRAD1, "{09F7DF}DENITED: {ffffff}Nu ai rangul administrativ necesar!"); } } } else { format(string, sizeof(string), " %d is not an active player.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }[/pawn] Daca iti da erori posteaza-le sa te ajut.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.