Scott_Williams
Membru-
Posts
213 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by Scott_Williams
-
Nu stie nimeni?
-
Bun, deci am 15 factiuni pe server ultima factiune a-15-a a fost o factiune pasnica iar eu am transformato intr-un gang, acum cand dau la seiful gangului /fdrugs de ex. imi zice ca nu sunt gang, unde trebuie sa modific cv ca sa ma lase sa depozitez si in seiful factiunii respective?Mersi anticipat. if(strcmp(cmd, "/fdrugs", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsAMember(playerid)) { new x; x = PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader]; if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, " You need to be Rank 2 or Higher for this action !"); return 1; } /*if(DynamicFactions[x][fSafe] <= 0) { SCM(playerid, COLOR_WHITE, "The leader must buy a SAFE first !"); return 1; }*/ new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ])) { format(string, sizeof(string), "Faction Drugs: $%d.", DynamicFactions[x][fDrugs]); SCM(playerid, COLOR_WHITE, string); } SCM(playerid, COLOR_WHITE, "|______________________FactionsDrugs___________________|"); SCM(playerid, COLOR_WHITE, "| USAGE: /fdrugs [name] [ammount]"); SCM(playerid, COLOR_GREY, " | Available names: Take , Put"); SCM(playerid, COLOR_WHITE, "|______________________________________________________|"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, playername, sizeof(playername)); if(strcmp(x_nr,"take",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[USAGE:] /fdrugs take [amount]"); return 1; } new materialsdeposit = strval(tmp); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[USAGE:] /fdrugs take [amount]"); return 1; } if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ])) { if(materialsdeposit <=DynamicFactions[x][fDrugs]) { PlayerInfo[playerid][pDrugs] += materialsdeposit; DynamicFactions[x][fDrugs]=DynamicFactions[x][fDrugs]-materialsdeposit; format(string, sizeof(string), "You have taken %d drugs from the storage facility, Drugs Total: %d ", materialsdeposit,DynamicFactions[x][fDrugs]); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s has just taken %d drugs from the faction storage facility.",sendername,materialsdeposit); SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string); SaveDynamicFactions(); return 1; } else { SCM(playerid, COLOR_GREY, "There isn't that much drugs in storage!"); } } else { SCM(playerid, COLOR_GREY , "You are not at the faction storage facility!"); } } else if(strcmp(x_nr,"put",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[USAGE:] /fdrugs put [amount]"); return 1; } new materialsdeposit = strval(tmp); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[USAGE:] /fdrugs put [amount]"); return 1; } if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ])) { if(materialsdeposit <= PlayerInfo[playerid][pDrugs]) { PlayerInfo[playerid][pDrugs] =PlayerInfo[playerid][pDrugs]-materialsdeposit; DynamicFactions[x][fDrugs] +=materialsdeposit; format(string, sizeof(string), "You putted %d drugs from the storage facility, Drugs Total: %d ", materialsdeposit,DynamicFactions[x][fDrugs]); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s has just putted %d drugs from the faction storage facility.",sendername,materialsdeposit); SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string); SaveDynamicFactions(); return 1; } else { SCM(playerid, COLOR_GREY, "You don't have that much drugs on you!"); } } else { SCM(playerid, COLOR_GREY, "You are not at the faction storage facility!"); } } else { SCM(playerid, COLOR_GREY, "Unknown fDrugs name !"); return 1; } } else { SCM(playerid, COLOR_GREY, "You are not a gang member !"); return 1; } } return 1; } public LoadDynamicFactions() { new arrCoords[8][64]; new strFromFile2[256]; new File: file = fopen("factions.cfg", io_read); if (file) { new idx; while (idx < sizeof(DynamicFactions)) { fread(file, strFromFile2); split(strFromFile2, arrCoords, '|'); strmid(DynamicFactions[idx][fName], arrCoords[0], 0, strlen(arrCoords[0]), 255); DynamicFactions[idx][fX] = floatstr(arrCoords[1]); DynamicFactions[idx][fY] = floatstr(arrCoords[2]); DynamicFactions[idx][fZ] = floatstr(arrCoords[3]); DynamicFactions[idx][fMats] = strval(arrCoords[4]); DynamicFactions[idx][fDrugs] = strval(arrCoords[5]); DynamicFactions[idx][fBank] = strval(arrCoords[6]); DynamicFactions[idx][fSafe] = strval(arrCoords[7]); printf("[FACTIONS]: Name:%s, ID:%d, Mats:%d, Drugs:%d, Money:%d",DynamicFactions[idx][fName],idx,DynamicFactions[idx][fMats],DynamicFactions[idx][fDrugs],DynamicFactions[idx][fBank],DynamicFactions[idx][fSafe]); idx++; } fclose(file); } return 1; } public SaveDynamicFactions() { new idx; new File: file2; while (idx < sizeof(DynamicFactions)) { new coordsstring[512]; format(coordsstring, sizeof(coordsstring), "%s|%f|%f|%f|%d|%d\n", DynamicFactions[idx][fName], DynamicFactions[idx][fX], DynamicFactions[idx][fY], DynamicFactions[idx][fZ], DynamicFactions[idx][fMats], DynamicFactions[idx][fDrugs], DynamicFactions[idx][fBank], DynamicFactions[idx][fSafe]); if(idx == 0) { file2 = fopen("factions.cfg", io_write); } else { file2 = fopen("factions.cfg", io_append); } fwrite(file2, coordsstring); idx++; fclose(file2); } return 1; }
-
Cauti in Gm: SetPlayerMapIcon apoi intri aici: http://wiki.sa-mp.com/wiki/MapIcons vezi care e iconita , ii vezi id-ul si la sfarsitul liniei ShowPlayerMapIcon vezi id-ul si faci legatura.
-
Am rezolvat. Mersi oricum -> Topic Close
-
Fratilor am mai bagat versiunea asta de streamer pe un alt gm deal meu si acolo mergea perfect.Doar la gm asta imi scrie erorile.Am incercat sa il compilez dar tot asa.
-
Salut, m-am apucat sa editez gm-u Raven's si avea streamerul pentru 0.3c si nu se deschideau bine portile.Am downloadat versiunea 2.7 a streamerului (include si plugin),dar acum cand deschid serverul imi da urmatoarele erori: Acolo scrie sa dau recompiler am dat dar aceeasi poveste. Ma poate ajuta cineva?Mersi anticipat
-
Te-am disperat?Ma bucur. Esti un k** sa ma exprim pe romaneste.
-
Plagiator...Doar de atat esti in stare?Sa copiezi un nume?
-
Stiu ca risc sa buguiesc sistemul dar doar vreau sa vad daca reusesc sa fac. Si stiu ca si trebuie sa modific tot sistemul daca vreau mai multe masini pers, dar daca te uitai atent la comanda "buy" pe care am puso aici ai sa observi ca sunt bagate 3 masini personale dar Car2 si Car3 sunt cu simbolul "//" inainte deci nu au nici o valoare,ceea ce trebuie eu sa fac pentru a debloca masinile e sa sterg: "//" dinainte liniilor si gata. Dar intrebarea mea a fost alta.
-
Folosesc sistemul din GM si nu am cerut sa imi faceti voi ceea ce am cerut ci doar sa imi dati cateva idei de unde sa incep.Dar uite ca pun comanda "buy": else if(strcmp(x_nr,"buy",true) == 0) { if(IsAnOwnableCar(idcar)) { if(PlayerInfo[playerid][pLevel] < 3) { SendClientMessage(playerid, COLOR_GREY, "You need to be level 3 to buy a vehicle!"); return 1; } if(PlayerInfo[playerid][pPcarkey1] == 999) { } //else if(PlayerInfo[playerid][pPcarkey2] == 999) { } //else if(PlayerInfo[playerid][pPcarkey3] == 999) { } else { SendClientMessage(playerid, COLOR_GREY, "Este deja o masina inregistrata pe numele tau."); return 1; } if(CarInfo[idcar][cOwned]==1) { SendClientMessage(playerid, COLOR_WHITE, "Cineva mai detine aceasta masina"); return 1; } if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue]) { if(PlayerInfo[playerid][pPcarkey1] == 999) { PlayerInfo[playerid][pPcarkey1] = idcar; } //else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = idcar; } //else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = idcar; } else { return 1; } CarInfo[idcar][cOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999); GivePlayerMoney(playerid,-CarInfo[idcar][cValue]); PlayerPlayMusic(playerid); GameTextForPlayer(playerid, "~r~~h~Congratulations~n~~y~~h~Don't forget to /v park it!", 5000, 3); SendClientMessage(playerid, COLOR_WHITE, "Felicitari ti-ai cumparat o noua masina!"); SendClientMessage(playerid, COLOR_WHITE, "Scrie /vehiclehelp pentru manualul masini."); TogglePlayerControllable(playerid, 1); //SendClientMessage(playerid, COLOR_YELLOW2, "Acum poti porni motorul masinii apasand pe butonul cu care sari."); //gEngine[playerid] = 0; //engineOn[GetPlayerVehicleID(playerid)] = false; DateProp(playerid); OnPropUpdate(); OnPlayerUpdate(playerid); return 1; } else { SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash with you ! "); return 1; } } } else { SendClientMessage(playerid, COLOR_GREEN,"________________Vehicle Help________________"); SendClientMessage(playerid, COLOR_WHITE,"*** VEHICLE *** /removetuning"); SendClientMessage(playerid, COLOR_WHITE,"*** VEHICLE *** /v [name]"); SendClientMessage(playerid, COLOR_WHITE,"*** VEHICLE *** Available names: park, lock(1), sell, sellto, color, /findcar(1)"); return 1; } } return 1; }
-
Salut,am un gm care iti permite doar 1 masina personala si as dori sa incerc sa fac sa iti poti cumpara 2 masini dar cea dea 2-a sa o poti cumpara la un level mai mare decat prima masina respectiv 5. Nu stiu de unde sa incep, mi-ar fi de folos niste sfaturi. Mersi
-
Deschide gm cu pawno la care ai pus in include SAMC.inc
-
Mie imi merge perfect.
-
Trebuie sa arate asa: http://pastebin.com/LRCsxbXZ Foloseste pawn asta: http://fisierulmeu.ro/215Z9WUK1HBQ/pawno-rar.html
-
Codul:(ex: RemoveBuildingForPlayer(playerid,modelid,etc...) sub OnPlayerConnect
-
Nu merge asa. ASrock, downloadeaza samp 0.3d deschide cu pawno original 0.3d si creeaza un fs si acolo bagi RemoveBuildingForPlayer(etc...) la OnPlayerConnect si o sa iti mearga.
-
Am rezolvat mersi HORVENN
-
Salut, am scos 1 cladire din joc si am bagat codul sub OnPlayerConnect, si imi da erorile urmatoare: C:\Documents and Settings\User\Desktop\William's v1.6\pawno\include\removebuilding.inc(72) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Documents and Settings\User\Desktop\William's v1.6.pwn(5) : error 017: undefined symbol "RemoveBuildingForPlayer" C:\Documents and Settings\User\Desktop\William's v1.6.pwn(6) : error 017: undefined symbol "RemoveBuildingForPlayer" Ma poate ajuta cineva?Mersi
-
Am rezolvat. Multumesc oricum. Topic CLOSE
-
Salut, am dat removebuilding la o cladire, am bagat codul in GM si imi zicea ca imi trebuie Include si am cautat pe www.sa-mp.com si am luat include de aici: http://forum.sa-mp.com/showthread.php?p=1551937 am bagat #include <removebuilding> si imi zice ca nu am includeul dar defapt il am.Ma poate ajuta cineva?Mersi anticipat.
-
Run time error 19: "File or function is not found"
Scott_Williams replied to andreisova's question in Arhivă probleme
Incearca sa deschizi sv-ul cu un alt samp-server.exe -
De unde crezi ca noi stim ce ai tu in gm de nu iti merge, cand mai postezi posteaza cu cap. Cer topic close.
-
Daca serverul foloseste streamer by Incognito downloadeaza streamerul versiunea 2.6 iar daca nu foloseste streamer atunci compileaza gm-ul cu pawno de la versiunea 0.3d. Link: http://code.google.com/p/samp-streamer-plugin/downloads/list ( Link by ![]stuntman[]! )
-
Run time error 19: "File or function is not found"
Scott_Williams replied to andreisova's question in Arhivă probleme
Iti lipsesc pluginuri. -
Trebuie sa pui in server.cfg la linia -> lanmode 1 in loc de 0
