Jump to content

andy47

Membru
  • Posts

    520
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by andy47

  1. acestea sunt cordonatele cu care trebuie sa le inlocuiesti [pawn]2025.8074,1545.5157,10.8187[/pawn]
  2. andy47

    Problema

    uitate aici sa vezi cum se foloseste http://wiki.sa-mp.com/wiki/AttachObjectToVehicle
  3. ) unde ai vazut tu asta? [pawn]dcmd_lv[/pawn] si la onplayercommandtext [pawn]dcmd(lv,2,cmdtext);[/pawn]
  4. pai posteaza systemul
  5. [pawn]MyPickup == CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 181.8650, 0, 0, 0, 0, 0, 0);[/pawn] inloc de asta pune asta: [pawn]MyPickup = CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 0);[/pawn] daca te uitai pe wiki vedeai cum se foloseste functia CreatePickup [pawn]CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);[/pawn] http://wiki.sa-mp.com/wiki/CreatePickup
  6. mai incearca odata ca am dat edit [pawn]// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> new MyPickup; #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print("_________Filterscript by SkyNet_________"); print("--------------------------------------\n"); MyPickup == CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 181.8650, 0, 0, 0, 0, 0, 0); return 1; } public OnFilterScriptExit() { return 1; } #endif public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[ ]) { if(dialogid == 1) { if(response) { if(listitem == 0) { SetPlayerSpecialAction(playerid, 20); return 1; } if(listitem == 1) { SetPlayerSpecialAction(playerid, 21); return 1; } } } return 0; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == MyPickup) { ShowPlayerDialog(playerid, 1, 2, "dialog1", "1. Bere\n2. Tigari", "Ok!", "N-am bani"); } return 1; }[/pawn]
  7. daca vrei sa fie filescript faci asa [pawn]// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> new MyPickup; #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print("_________Filterscript by SkyNet_________"); print("--------------------------------------\n"); MyPickup == CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 181.8650, 0, 0, 0, 0, 0, 0); return 1; } public OnFilterScriptExit() { return 1; } #endif public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[ ]) { if(dialogid == 1) { if(response) { if(listitem == 0) { SetPlayerSpecialAction(playerid, 20); return 1; } if(listitem == 1) { SetPlayerSpecialAction(playerid, 21); return 1; } } } return 0; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == MyPickup) { ShowPlayerDialog(playerid, 1, 2, "dialog1", "1. Bere\n2. Tigari", "Ok!", "N-am bani"); } return 1; }[/pawn]
  8. vezi ca inloc de [pawn]params[])[/pawn] pune [pawn]params[])[/pawn] asa se pune de la forum nush de ce
  9. [pawn]if(strcmp(cmd, "/goto", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "CMD: /goto [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 (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1) { if(Spectate[playerid] != 255) { Spectate[playerid] = 256; } GetPlayerPos(plo, plocx, plocy, plocz); if(PlayerInfo[plo][pInt] > 0 || GetPlayerInterior(plo) > 0) { SetPlayerInterior(playerid,GetPlayerInterior(plo)); SetPlayerInterior(playerid,PlayerInfo[plo][pInt]); PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt]; PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal]; } if(PlayerInfo[playerid][pInt] == 0) { SetPlayerInterior(playerid,0); } if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(playerid,1); PlayerInfo[playerid][pInt] = 1; } if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid,plocx,plocy+2, plocz); } format(string, sizeof(string), " Ai fost teleportat la playerul %s.", plo); SendClientMessage(playerid, 0xA8A8FFFF, string); SetPlayerInterior(playerid,GetPlayerInterior(plo)); PlayerInfo[playerid][pInt] = GetPlayerInterior(plo); SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(plo)); HouseEntered[playerid] = HouseEntered[plo]; } else { SendClientMessage(playerid, COLOR_1RED, "Nu ai acces la aceasta comanda "); } } } else { format(string, sizeof(string), " That player is not connected.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }[/pawn] incearca asta
  10. [pawn]CMD:rcmds(playerid, params[]) { new rcmds[1800]; //-------------------------------------------------------------------------- if(IsPlayerAdmin(playerid)) { //---------------------------------------------------------------------- strcat(rcmds, "{FF0000}/SetKills {FF9900}» {AFAFAF} Seteaza Kills (Doar pentru tine)!\n"); strcat(rcmds, "{FF0000}/SetDeaths {FF9900}» {AFAFAF} Seteaza Deaths (Doar pentru tine)!\n"); strcat(rcmds, "{FF0000}/SetSpree {FF9900}» {AFAFAF} Seteaza Killing Spree(Doar pentru tine)!\n"); strcat(rcmds, "{FF0000}/SetBestKills {FF9900}» {AFAFAF} Seteaza Best Killing Spree(Doar pentru tine)!\n"); strcat(rcmds, "{FF0000}/SetHours {FF9900}» {AFAFAF} Setezi orele (Doar pentru tine)!\n"); strcat(rcmds, "{FF0000}/SetRespect {FF9900}» {AFAFAF} Seteaza + la Respect!\n"); strcat(rcmds, "{FF0000}/SetMRespect {FF9900}» {AFAFAF} Seteaza - la Respect!\n"); strcat(rcmds, "{FF0000}/SetVWarn {FF9900}» {AFAFAF} Seteaza Warn la VIP.\n"); strcat(rcmds, "{FF0000}/SetStunt {FF9900}» {AFAFAF} Seteaza Stunt Points\n"); strcat(rcmds, "{FF0000}/SetRace {FF9900}» {AFAFAF} seteaza Race Points.\n"); strcat(rcmds, "{FF0000}/SetDrift {FF9900}» {AFAFAF} Seteaza Drift Points.\n"); strcat(rcmds, "{FF0000}/Setc4 {FF9900}» {AFAFAF} Seteaza bombele c4.\n"); strcat(rcmds, "{FF0000}/SetLevel {FF9900}» {AFAFAF} Seteaza nivelul Admin-ului.\n"); strcat(rcmds, "{FF0000}/SetRVIP {FF9900}» {AFAFAF} Seteaza nivelul VIP-ului.\n"); strcat(rcmds, "{FF0000}/SetCoins {FF9900}» {AFAFAF} Seteaza Coins.\n"); strcat(rcmds, "{FF0000}/GiveallCoins {FF9900}» {AFAFAF} Setezi coins la toti playerii!\n"); ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "{0066CC}X{FFFF00}S{FF0000}D{AFAFAF} - RCON Commands", rcmds, "OK", ""); } else { SendClientMessage(playerid, red, "ERROR: Only RCON Admins can view this dialog!"); } return 1; } [/pawn] incearca asta
  11. posteaza THREAD_CHECK_BANS_LIST
  12. bravo RoW ai o inghetata de la mine :D
  13. mergi la public OnPlayerEnterCheckpoint(playerid) si adaugi if(CP[playerid] == 0) { DisablePlayerCheckpoint(playerid); }
  14. daca gasesti pe net l/r mysql r8 ai un ou de pasti;)
  15. posteaza si functia CustomPickups EDIT: la x_nr = strtok(cmdtext, idx); ai pus new x_nr[256]; ??
  16. new antifk[MAX_PLAYERS]; public OnPlayerDeath(playerid, killerid, reason) { antifk[playerid] ++; SetTimerEx("fk_public", 1000,false,"i",playerid); return 1; } forward fk_public(playerid); public fk_public(playerid) { antifk[playerid] --; if(antifk[playerid] > 3) { SendClientMessage(playerid, -1,"Acest server foloseste Anti Fake-Kill !"); Kick(playerid); } return 1; } incearca asta sau pune la onplayerdeath if(GetPlayerWeapon(killerid) != reason) { SendClientMessage(playerid, -1, "Kill fals !!!"); }
  17. dai ctr+f si cauta pLevel si vezi ca iti da ceva gen asta: [pLevel] = 2; in loc de 2 pui 1
  18. verifica coordonatele poate din cauza asta nu se misca usa
  19. la linia asta: public OnPlayerCommandText(playerid, cmdtext[]) ce is semnele alea!? [] ? P.S.: trb asa public OnPlayerCommandText(playerid, cmdtext[])
  20. sper sa te ajute tutorialul acesta http://www.sa-mp.ro/forum/index.php?topic=13326.0
  21. dai ctr+f si cauta PlayerInfo[i][pLevel] = 2; inloc de 2 pune 1
  22. zi bugu si il rezolv eu:D P.S.: postez si bank system pe mysql cu dialoguri =) si mai vad eu....;)
  23. stergel il ai deja definit
  24. MySql Login/Register System Am creat un system de login register simplu pe mysql r8 pe care am folosit cache. Multa lume cauta asa ceva asa ca m-am gandit sa-l postez. Nu am descoperit nici un bug. Am pus daca playerul nu este logat sa i se stearga contul. Conturile se salveaza odata la 10 minute. Baza de date(.sql): [download]http://www.solidfiles.com/d/a9088e354c[/download] [download]https://www.dropbox.com/s/56ennoqmdv35gjq/legend.sql[/download] [download] http://www.4shared.com/document/ofeuac_P/legend.html[/download] Scriptul(.pwn):[download]http://www.solidfiles.com/d/d87dcdc3cc[/download] [download]https://www.dropbox.com/s/8w0vsthnshag2h7/mere.pwn[/download] [download] http://www.4shared.com/file/JbNDKAXY/mere.html[/download] MySql Plugin Include(.dll .so .inc): [download]http://www.solidfiles.com/d/cc123799df/[/download] [download]http://www.4shared.com/rar/TzTY1Rgh/pluginandinclude.html[/download] [download]https://www.dropbox.com/s/win9mqikilzggxh/pluginandinclude.rar[/download]
  25. fi mai explicit cu ce vrei 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.