Jump to content

AlexanderSMG

Membru
  • Posts

    42
  • Joined

  • Last visited

Everything posted by AlexanderSMG

  1. Buna ziua,va rog frumos stiu ca este ceva banal pentru un scripter cat de cat experimentat vreau si eu sa faceti in asa fel incat daca dau odata /vipname sa nu mearga sa dau iar /vipname pana nu dau /removename,adica mai explicat dupa ce dau /vipname ca sa pot da iar aceasta comanda sa imi ceara sa dau /removename,uitati comenzile: CMD:vipname(playerid, params[]) { new text[6], szMessage[256]; new vehicleid = GetPlayerVehicleID(playerid); if(sscanf(params, "s[50]", text)) return SCM(playerid, COLOR_WHITE, "SYNTAX: /vipname [name]"); if(PlayerInfo[playerid][pVIP] == 1) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && GetPlayerState(playerid) != PLAYER_STATE_PASSENGER) return SCM(playerid, COLOR_WHITE, "Nu esti intr-un vehicul."); if(OwnedVeh(vehicleid)) { vText = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805); SetObjectMaterialText(vText, text, 0, 50, "Arial", 25, 1, 0xFFFFFFFF, 0, 1); AttachObjectToVehicle(vText, vehicleid, 0.0,-1.9, 0.3, 270.0, 0.0, 0.0); format(szMessage, sizeof(szMessage), "{F2CF09}Text pentru vehicul setat: '%s'", text); SCM(playerid, COLOR_YELLOW, szMessage); } } return 1; } CMD:removename(playerid, params[]) { new szMessage[256]; new vehicleid = GetPlayerVehicleID(playerid); if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && GetPlayerState(playerid) != PLAYER_STATE_PASSENGER) return SCM(playerid, COLOR_WHITE, "Nu esti intr-un vehicul."); if(OwnedVeh(vehicleid)) if(PlayerInfo[playerid][pVIP] == 1) { DestroyObject(vText); format(szMessage, sizeof(szMessage), "{F2CF09}Text-ul setat pe masina a fost sters cu succes."); SCM(playerid, COLOR_RED, szMessage); } return 1; }
  2. Salut adauga-ma pe SKYPE isacalex99 sa iti explic cam ce vreau eu si sa stabilim un pret.
  3. Pozitie: Scripter Alte detalii: Caut scripter sa imi reproduca un GM deoarece am doar .amx-ul de la el,platesc in bani 100 lei paysafe sau ramane alaturi de mine la administrarea serverului cu drepturi egale.
  4. La PD, /mesajwanted pe scurt /mw nume player,aceasta comanda trimite playerului cu wanted un mesaj care il avertizeaza sa opresca daca nu risca wanted 6 fara drept de predare, /radar politia rutiera se pune cu radarul,/clear cei de rank 3+ sterg wantedul jucatorilor,/suspect dai wanted unui jucator,cat despre bussinesuri,iti dau o idee geniala,faci bussines Electricitate,si playerilor care au casa,la fiecare payday sa li se i-a o suma de bani,aceea fiind plata electricitatii. Iti pot da eu un GM doar .amx foarte reusit sa te inspiri de comenzi si ce vrei tu,in GM-ul care il am iti dau lider la ce factiune vrei tu apoi dai /help si itii apar toate comenzile. PM daca esti interesat.
  5. Nu cred ca poate reproduce cineva acest GM,cine vrea sa se bage,cu preturi acceptabile sa ma contacteze prin PM,ma refer cine vrea sa reproduca GM-ul,va dau .amx sa vedeti cum este.
  6. Buna ziua,caut un scripter de incredere si priceput,care imi poate transforma din .amx in .pwn,mentionez ca .amx-ul are anti deamx ca nu merge convertit cu EasyDeAmx. Platesc.
  7. Pai nu gasesc nici eu in GM,ciudat este faptul ca ieri mergea,si nu pot sa imi dau seama daca nu mai merge ca am modificat eu ceva prin GM,stiu sigur ca nu am umblat la nimic ce are legatura cu avioane sau vehicule
  8. inca o problema,nu imi merge niciun avion pe server. Inainte mergeau acum nu mai merg,nu stiu de ce. Adica cand ma urc in ele cu licenta de zbor,cu tot,imi zice Player can note use this vehicle.
  9. if(strcmp(cmd, "/gethere", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendUsage(playerid,"/gethere [playerid/PartOfName]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if(Goto[plo] == 1) { if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1) { GetPlayerPos(playerid, plocx, plocy, plocz); SetPlayerInterior(plo,GetPlayerInterior(playerid)); PlayerData[plo][pInt] = GetPlayerInterior(playerid); PlayerData[plo][pLocal] = PlayerData[playerid][pLocal]; if(PlayerData[playerid][pInt] == 0) { SetPlayerInterior(plo,0); } if(plocz > 930.0 && PlayerData[playerid][pInt] == 0) { SetPlayerInterior(plo,1); PlayerData[plo][pInt] = 1; } if (GetPlayerState(plo) == 2) { new tmpcar = GetPlayerVehicleID(plo); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); } else { SetPlayerPos(plo,plocx,plocy+2, plocz); } SendClientMessage(plo, COLOR_LIGHTGREEN, "Ai fost teleportat cu succes!"); foreach(Player, i) { if(PlayerData[pAdmin] >= 1) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(plo, giveplayer,sizeof(giveplayer)); format(string, sizeof(string), "{C8D4D4}Adm{DB8E12}Warning:{FFFFFF} Admin %s l-a teleportat pe %s.", sendername,giveplayer); SendClientMessage(i, COLOR_LIGHTRED, string); } } } else { SendError(playerid,cmd); } } else { SendClientMessage(playerid, COLOR_GRAD1, "Acel player nu a dat /ajutor sau /report !"); } } } else { format(string, sizeof(string), "%d nu este conectat.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } Si gethere la fel. Mi-l rezolvi si pe asta?
  10. if(strcmp(cmd, "/goto", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /goto [playerid/numejucator]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if(Goto[plo] == 1) { if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1) { if(Spectate[playerid] != 255) { Spectate[playerid] = 256; } GetPlayerPos(plo, plocx, plocy, plocz); if(PlayerData[plo][pInt] > 0) { SetPlayerInterior(playerid,PlayerData[plo][pInt]); PlayerData[playerid][pInt] = PlayerData[plo][pInt]; PlayerData[playerid][pLocal] = PlayerData[plo][pLocal]; } if(PlayerData[playerid][pInt] == 0) { SetPlayerInterior(playerid,0); } if(plocz > 530.0 && PlayerData[plo][pInt] == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(playerid,1); PlayerData[playerid][pInt] = 1; } if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); } else { SetPlayerPos(playerid,plocx,plocy+2, plocz); } SendClientMessage(playerid, COLOR_GRAD1, " Ai fost teleportat"); SetPlayerInterior(playerid, GetPlayerInterior(plo)); //Goto[plo] = 0; SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(plo)); } else { SendClientMessage(playerid, COLOR_GRAD1, " Nu ai rangul administrativ necesar!"); } } else { SendClientMessage(playerid, COLOR_GRAD1, "[Anti-Abuz] Acel player nu dat ajutor sau report "); } } else { format(string, sizeof(string), " %d nu este conectat.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } } return 1; } Pot da goto doar daca playerul da /report,cum pot rezolva??
  11. Buna ziua,am luat un GM dupa net,nu ii dau nume daca nu este nevoie,si are interiorul la banca schimbat,dar cand intri in banca primesti freeze automat si pana nu iti dai unfreeze nu te poti misca,cum pot remedia aceasta problema? Ca e o problema destul de mare pentru playeri.
  12. A mers,doar ca tot nu apar stelutele de WANTED si nici comanda /mapredau nu mai merge. In schimb totul e bine.
  13. Buna ziua,dupa cum ziceam,am un GM luat dupa net si am scapat de majoritatea problemelor si bugurilor,acum am dat de alta problema minora ca sa ii zic asa. Indiferent din ce factiune ai fi,cand dai relog iti da un skin default,nu stiu ID-ul skinului respectiv,ceea ce vreau eu e sa iti ramana skinul factiunii in care esti orice ai face.
  14. } if(strcmp(cmd, "/depune", true) == 0 || strcmp(cmd, "/atmdepune", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(3.0,playerid,1737.201171,-1862.834960,13.575809) || PlayerToPoint(3.0,playerid,1154.137573,-1456.037109,15.796875) || PlayerToPoint(3.0,playerid,1496.072998,-1749.133911,15.445312) || PlayerToPoint(3.0,playerid,1831.669555,-1172.762329,23.907688) || PlayerToPoint(3.0,playerid,1625.031616,-1136.564697,23.906250) || PlayerToPoint(3.0,playerid,-1981.335083,144.781814,27.687500) || PlayerToPoint(3.0,playerid,1009.184143,-929.662963,42.328125)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "COMANDA: /depune [amount]"); format(string, sizeof(string), "Tu ai %d$ in Cont.", PlayerInfo[playerid][pAccount]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } new cashdeposit = strvalEx(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "COMANDA: /depune [amount]"); format(string, sizeof(string), "Tu ai %d$ in Cont.", PlayerInfo[playerid][pAccount]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (cashdeposit > GetPlayerCash(playerid) || cashdeposit < 1) { SendClientMessage(playerid, COLOR_GRAD2, "Nu ai atat de mult"); return 1; } GivePlayerCash(playerid,-cashdeposit); //hackmoney[playerid] = hackmoney[playerid] - cashdeposit; if(cashdeposit > 4999 && cashdeposit < 50000) { //ConsumingMoney[playerid] = 2; } else if(cashdeposit > 49999 && cashdeposit < 500000) { //ConsumingMoney[playerid] = 3; } else if(cashdeposit > 499999 && cashdeposit < 5000000) { //ConsumingMoney[playerid] = 4; } //ConsumingMoney[playerid] = 1; new curfunds = PlayerInfo[playerid][pAccount]; PlayerInfo[playerid][pAccount]=cashdeposit+PlayerInfo[playerid][pAccount]; SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATMENT ___|"); format(string, sizeof(string), "Balanta Veche: $%d", curfunds); SendClientMessage(playerid, COLOR_GRAD2, string); format(string, sizeof(string), "Depozit: $%d",cashdeposit); SendClientMessage(playerid, COLOR_GRAD4, string); SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|"); format(string, sizeof(string), "Balanta Noua: $%d", PlayerInfo[playerid][pAccount]); SendClientMessage(playerid, COLOR_WHITE, string); TextDrawShowForPlayer(playerid, BalanceTextDraw[playerid] ); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTGREEN, "Nu esti la ATM !"); return 1; } } return 1; }
  15. Pun exact cum mi-ai spus tu si imi da erroare asta fix la linia respectiva: C:\Users\Alexander\Desktop\XX RPG\gamemodes\XX.pwn(21721) : error 029: invalid expression, assumed zero
  16. Buna seara,revin iar cu o problema sa ii spun asa. Am un GM luat dupa net,is la inceput cu scriptatul si nu stiu sa fac un GM la de 0 cum s-ar zice,in fine,usor usor am scapat de probleme,acum am dat de o problema ca sa ii zic asa,cand te duci la ATM si scrii /depune sau /transfera,cand dai o comanda ce are legatura cu Bani din banca,sub banii din mana iti apare cu albastru banii din banca si eu vreau sa elimin chestia asta ca se suprapune cu Stelutele de Wanted.
  17. Buna ziua,vreau sa imi modific niste case pe sv,si am dat de o problema,de ex daca vreau sa sterg o casa si sa fac eu alta,cand dau convert imi da RemoveBuildingForPlayer si CreateDynamicObject. CreateDynamicObject stiu unde trebuie adaugat,dar RemoveBuildingForPlayer nu gasesc nici in GM vreo linie aseamanatoare sa stiu unde sa o adaug,daca nu adaug liniile alea se suprapune casa pe casa,adica casa originala cu casa facuta de mine.
  18. Eroare la compilare. C:\Users\Alexander\Desktop\XX RPG\gamemodes\XX.pwn(32978) : error 033: array must be indexed (variable "PlayerInfo") Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase uite si linia 3297 : if(PlayerInfo[pMember] == 1 || PlayerInfo[pLeader] == 1 || PlayerInfo[pMember] == 2 || PlayerInfo[pLeader] == 2 || PlayerInfo[pMember] == 3 || PlayerInfo[pLeader] == 3)
  19. C:\Users\Alexander\Desktop\XX RPG\gamemodes\XX.pwn(21537) : error 029: invalid expression, assumed zero C:\Users\Alexander\Desktop\XX RPG\gamemodes\XX.pwn(21537 -- 21538) : error 029: invalid expression, assumed zero
  20. Nu merge sa compilez,adaug asa " if(PlayerInfo[playerid][pAdmin] >= 1) || BigEar[playerid] == 1)" Si imi da errori la compilare.
  21. Daca poti sa mi-o modifici tu direct, ca mi-ai mai explicat odata dar nu am inteles. Fami-o tu sa mearga si sa fie pana la wanted 6 maxim! //----------------------------------[SetCrim]----------------------------------------------- if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USAGE: /(su)spect [PlayerID/PartOfName] [Wanted] [Reason]"); new playa; new money; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); money = strval(tmp); if (IsACop(playerid)) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; result[0] = toupper(result[0]); if(!strlen(result)) return SendClientMessage(playerid, -1, "USAGE: /(su)spect [PlayerID/PartOfName] [Wanted] [Reason]"); if (gTeam[playa] == 2 || IsACop(playa)) return SendClientMessage(playerid, -1, "You can't Suspect a Cop!"); if(PlayerInfo[playa][pJailed] == 1 || PlayerInfo[playa][pJailed] == 2) return SendClientMessage(playerid, COLOR_WHITE, "You can't suspect a jailed player"); if(money > 10) return SendClientMessage(playerid, COLOR_GREY, "Maximum wanted level is 10!"); if(money == 0) return SendClientMessage(playerid, COLOR_GREY, "Minimum wanted level is 0!"); if(PlayerInfo[playa][pWanted] > 9) return SendClientMessage(playerid, COLOR_GREY, "That player have Maxim Wanted Level! (Wanted 10)"); format(string, sizeof(string), "Thay player have Wanted %d , give him a lower wanted level", PlayerInfo[playa][pWanted]); if(PlayerInfo[playa][pWanted] + money > 10) return SendClientMessage(playerid, COLOR_GREY, string); PlayerInfo[playa][pWanted] += money; new wl = PlayerInfo[playa][pWanted]; SetPlayerWantedLevel(playa, wl); GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "You commited a crime ( %s ) [+%d],Raportat de: %s",result,money,sendername); SendClientMessage(playa, COLOR_LIGHTRED, string); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pMember] == 1 || PlayerInfo[pLeader] == 1 || PlayerInfo[pMember] == 2 || PlayerInfo[pLeader] == 2 || PlayerInfo[pMember] == 3 || PlayerInfo[pLeader] == 3) { format(string, sizeof(string), "HQ: All units APB: Reporter: %s.",sendername); SendClientMessage(i, 0x0000C1FF, string); format(string, sizeof(string), "HQ: Crime: %s[+%d], Suspect: %s. ",result,money,giveplayer); SendClientMessage(i, 0x0000C1FF, string); } } } } } } else return SendClientMessage(playerid, COLOR_GREY, "You are not a Cop!"); } return 1; }
×
×
  • 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.