Jump to content

Yamato

Membru
  • Posts

    48
  • Joined

  • Last visited

Profile Information

  • Sex
    Masculin
  • In-game Name
    Yamato
  • Level of knowledge
    Mediu

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Yamato's Achievements

Contributor

Contributor (5/14)

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

Recent Badges

1

Reputation

  1. Pai, trebuie sa te uiti si la onplayertakedamage , in momentul in care ala trage , persoana care e cu freeze sa i se seteze hp la maxim , sau cum vrei tu
  2. Fai la login , numele din baza de date sa fie o variabila pName sau pServerName si cand pui %s , scri PlayerInfo[playerid][pName] si aia e
  3. Unde dai starwar , probabil nu trece si vehiculele in virtualworld, te trece doar pe tine, asta inseamna ca trebuie sa folosesti SetVehicleVirtualWorld(vehicul, virtualword)
  4. https://tutoriale-pe.net/tutorial-samp-cum-sa-rezolvam-eroarea-runtime-error-19-file-or-function-is-not-found/ ai aici toate posibilitatile
  5. Salutare , astazi m-am decis sa fac un tutorial despre cum se poate proteja o anumita categorie de playeri. Spre exemplu eu sunt admin si sunt absolut normal pe server , dar cand dau /aod, pot fii omorat sau diverse chestii deranjante . Astazi o sa invatam daca un player admin este on duty , si cineva il ataca , sa i se scada HP si sa i se dea slap. Mergem la public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid) si adaugam asta: if(AdminDuty[damagedid] == 1) //verificam daca playerul atacat este admin on duty { new Float:plx, Float:ply, Float:plz; //definim plx, ply, plz GetPlayerPos(playerid, plx, ply, plz); //luam coordonatele adminului SetPlayerPos(playerid, plx, ply, plz+3); //setam coordonata z a atacatorului cu +3 (ii dam slap) new Float:playerHealth = 0; //definim playerhealth GetPlayerHealth ( playerid, playerHealth ); //luam health playerului actual SetPlayerHealth(playerid, ( playerHealth - 20 ) ); //setam sa i se scada din health actual al playerului -20. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Acest player este On-Duty"); // trimitem mesaj atacatorului SendClientMessage(playerid, 0xFFFFFFFF, "Ti-a scazut viata pentru ca ai atacat un player On-Duty!"); //trimitem mesaj atacatorului } in final public-ul arata asa public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid) { if(AdminDuty[damagedid] == 1) { new Float:plx, Float:ply, Float:plz; GetPlayerPos(playerid, plx, ply, plz); SetPlayerPos(playerid, plx, ply, plz+3); new Float:playerHealth = 0; GetPlayerHealth ( playerid, playerHealth ); SetPlayerHealth(playerid, ( playerHealth - 20 ) ); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Acest player este On-Duty"); SendClientMessage(playerid, 0xFFFFFFFF, "Ti-a scazut viata pentru ca ai atacat un player On-Duty!"); } return 1; }
  6. Yamato

    Ajutor

    Spre exemplu la realchat ca sa scrie cu rosu doar daca esti tu , uite new nume[64]; GetPlayerName(playerid, nume, sizeof(nume)); if((strcmp(nume, "Yamato", true) == 0)) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "{FF0000}%s: {FFFFFF}%s", sendername, text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); } In loc de Yamato pui numele tau , iar ca sa vezi chestia aia cu rcon login uite asta public OnRconLoginAttempt(ip[], password[], success) { if(!success) { new string[128],sendername[25]; format(string, sizeof(string), "Player with IP %s has typed a wrong server password: %s.", ip, password); ABroadCast(0xFF0000FF, string, 6); new pip[16]; foreach(Player,i) { GetPlayerIp(i, pip, sizeof(pip)); if(!strcmp(ip, pip, true) && PlayerInfo[pAdmin] < 6) { SendClientMessage(i, 0xFFFFFFFF, "{FF0000}AdmBot{FFFFFF}: Wrong Password. Banned!"); GetPlayerName(i, sendername, sizeof(sendername)); format(string, sizeof(string), "AdmCmd: %s was banned by AdmBot, reason: Wrong RCON Password", sendername); SendClientMessageToAll(COLOR_LIGHTRED, string); KickEx(i); } } } return 1; } sau asta public OnRconLoginAttempt(ip[], password[], success) { if(!success) { new pip[16]; new string[176]; new giveplayerid; for(new i = 0; i <= MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerIp(i, pip, sizeof(pip)); if(!strcmp(ip, pip, true)) { new sendername[MAX_PLAYER_NAME]; GetPlayerName(i, sendername, sizeof(sendername)); if(LogingAttempts!= 5) { format(string, sizeof(string),"[RCON]: %s (%d) tried to login at RCON and Failed!",sendername,i); ABroadCast(COLOR_LIGHTRED,string,1); LogingAttempts ++; } else { format(string, sizeof(string), "LOCALHOST: Banning player '%s'. Reason: Too many Failed Logins at RCON", sendername); Ban(giveplayerid); } } } } } else { new pip[16]; new string[176]; for(new i = 0; i <= MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerIp(i, pip, sizeof(pip)); if(!strcmp(ip, pip, true)) { new sendername[MAX_PLAYER_NAME]; GetPlayerName(i, sendername, sizeof(sendername)); format(string, sizeof(string),"[RCON]: %s (%d) tried to login at RCON and Succesed!",sendername,i); ABroadCast(COLOR_LIGHTRED,string,1); } } } } return 1; }
  7. Foloseste asta http://forum.sa-mp.com/showthread.php?t=376758 pentru textdraw , si faci dupa bunul plac textdrawrile
  8. Salutare samp romania. am si eu o intrebare , si anume , cum pot face ca in momentul cand dau buy la o masina sa nu mi se spawneze una peste alta sa fie una langa alta , locatiile sa le pun eu la dispozitie , cand se termina , sa inceapa sa se puna iar din primul loc , si tot asa . Tin sa precizez ca am facut ds-ul lui maurice
  9. se poate inchide , gm-ul e imposibil de deschis , multumesc frumos pentru ajutor
  10. nu am host, lucrez pe localhost, ro-streets vad ca merge , spre ex
  11. fix asta e GameMode PlayNion.rar EDIT: acu da alte prostii
  12. echo Executing Server Config... lanmode 0 rcon_password 1234 maxplayers 10 port 7777 rcon 0 hostname FUN-TESTE gamemode0 gf 1 plugins crashdetect sscanf streamer mysql wp filterscripts profile_gamemode 1 profile_format html announce 0 query 1 weburl www.funreborn.ro/forum onfoot_rate 40 incar_rate 40 weapon_rate 40 stream_distance 300.0 stream_rate 1000 maxnpc 10 asta e server.cfg , gm-ul este playnion din colectia aia
  13. Am pus plunginuri noi si degeaba , la toate gm-urile sql face asa
  14. am o ciudata problema la gamemode-urile cu database ,adica , imi apare la samp-server.exe : SA-MP Dedicated Server ---------------------- v0.3.7, (C)2005-2015 SA-MP Team [13:07:46] password = "" (string) [13:07:46] filterscripts = "" (string) [13:07:46] [13:07:46] Server Plugins [13:07:46] -------------- [13:07:46] Loading plugin: mysql [13:07:46] Failed. [13:07:46] Loading plugin: sscanf [13:07:46] [13:07:46] =============================== [13:07:46] sscanf plugin loaded. [13:07:46] Version: 2.8.1 [13:07:46] (c) 2012 Alex "Y_Less" Cole [13:07:46] =============================== [13:07:46] Loaded. [13:07:46] Loading plugin: streamer [13:07:46] Failed. [13:07:46] Loading plugin: Whirlpool [13:07:46] Failed. [13:07:46] Loading plugin: GeoIP_Plugin [13:07:46] Error loading GeoIP_Plugin. [13:07:46] Failed. [13:07:46] Loading plugin: nativechecker [13:07:46] Loaded. [13:07:46] Loading plugin: crashdetect [13:07:46] Failed. [13:07:46] Loaded 2 plugins. [13:07:46] [13:07:46] Filterscripts [13:07:46] --------------- [13:07:46] Loaded 0 filterscripts. [13:07:46] Error: Function not registered: 'mysql_connect' [13:07:46] Error: Function not registered: 'mysql_tquery' [13:07:46] Error: Function not registered: 'CreateDynamicObject' [13:07:46] Error: Function not registered: 'DestroyDynamicObject' [13:07:46] Error: Function not registered: 'cache_get_data' [13:07:46] Error: Function not registered: 'cache_get_field_content' [13:07:46] Error: Function not registered: 'MoveDynamicObject' [13:07:46] Error: Function not registered: 'DestroyDynamicPickup' [13:07:46] Error: Function not registered: 'CreateDynamicPickup' [13:07:46] Error: Function not registered: 'cache_get_row' [13:07:46] Error: Function not registered: 'CreateDynamic3DTextLabel' [13:07:46] Error: Function not registered: 'DestroyDynamic3DTextLabel' [13:07:46] Error: Function not registered: 'mysql_close' [13:07:46] Script[gamemodes/gamemode.amx]: Run time error 19: "File or function is not found" [13:07:46] Number of vehicle models: 0 am avut si la gamemode-urile normale , dar am rezolvat . Tin sa precizez ca am incercat toate metodele de rezolvare a acestei erori , si doar la gamemode-urile normale a mers
×
×
  • 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.