Jump to content

Matt

VIP
  • Posts

    555
  • Joined

  • Last visited

  • Days Won

    13

Everything posted by Matt

  1. Toate sunt la fel de prost optimizate si buguite, iti recomand new.pwn.
  2. In mare parte da, am schimbat vegetatia, hud-ul si cateva masini
  3. Uh, am cautat pe google 'directx 2.0 enb 2018' si mi l-a dat. EDIT: Asta cred ca e: https://www.gtainside.com/en/sanandreas/mods/119369-sa-directx-2-0/
  4. Arata codul.. EDIT: sorry pentru double post.
  5. Nu are rost sa ii seteze pozitia si angle-ul daca l-a creat, se pun automat coordonatele atunci.
  6. Acel actor ar trebui sa fie si in alt virtual?
  7. Nu stiu, animatia ti-o cauti singur. Poate te ajuta: http://wiki.sa-mp.com/wiki/Animations
  8. Daca actorul trebuie pus intr-un virtual diferit de 0, trebuie sa folosesti si SetActorVirtualWorld(shopactor, virtualul_dorit); Un actor ca sa foloseasca o animatie, trebuie sa folosesti ApplyActorAnimation. Exemplu: ApplyActorAnimation(shopactor, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0); Asa ii vei da actorului animatia de 'crossarms'. EDIT: Daca tot nu apare actorul, asigura-te ca il si incarci, creeaza-l la OnGamemodeInit.
  9. Cum a spus si @Dani3l.. Ai aici un link care sa te ajute. http://wiki.sa-mp.com/wiki/CreateActor
  10. Helau. https://discord.gg/hZknp7F
  11. Hm, arata si ce este in mysql_log..
  12. Arata si unde ii dai valoarea 1 variabilei ConnType.
  13. Pai, am vrut sa fac sistem de telefon dar era prea simplu cel cu /call <nr>. Am zis ca arata mai bine asa ????
  14. OnPlayerEnterCheckpoint se activeaza doar cand jucatorul intra intr-un checkpoint, cand ii dai quest-ul nu ii pui unul. Acea verificare trebuie sa stea sub timer-ul care functioneaza din secunda in secunda in gm-ul tau.
  15. Pui gamemode-ul in folder-ul 'gamemodes', toate plugin-urile pe care le foloseste gm-ul le pui in folder-ul 'plugins'. Dupa ce le-ai adaugat in foldere, modifici in server.cfg sa arate asa: echo Executing Server Config... lanmode 0 rcon_password parola_rcon maxplayers 50 port 7777 hostname Hostname-ul_server-ului gamemode0 numele_gamemode-ului_tau 1 (sa fie compilat) announce 0 chatlogging 0 weburl onfoot_rate 40 incar_rate 40 weapon_rate 40 stream_distance 300.0 stream_rate 1000 maxnpc 0 logtimeformat [%H:%M:%S] language EN/RO plugins plugin-urile_tale (daca OS-ul host-ului este Linux, atunci dupa fiecare plugin adaugi .so)
  16. Incearca sa-l bagi in OnGamemodeInit, poate o functie din acel include nu este chemata. RemoveBuildingForPlayer o bagi in OnPlayerConnect.
  17. Esti sigur ca mapping-ul din acea zona nu depaseste 1000 de obiecte? Ai incarcat mapping-ul la OnGamemodeInit?
  18. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) // verificam daca a apasat un key { if(newkeys & KEY_YES) // verificam daca a apasat Y { if(IsPlayerInRangeOfPoint(playerid, 2.0,0.0,0.0,0.0) // avem job-ul cu ID 1 la coordonatele 0.0, 0.0, 0.0 { if(PlayerInfo[playerid][pJob] != 0) // verificam daca are vreun job { PlayerInfo[playerid][pJob] = 0; SCM(playerid, -1, "Ai demisionat de la job-ul tau actual."); } else // daca nu are niciun job { PlayerInfo[playerid][pJob] = 1; SCM(playerid, -1, "Te-ai angajat la job-ul cu ID 1."); } } else if(IsPlayerInRangeOfPoint(playerid, 2.0, 100.0, 100.0, 100.0) // coord altui job { // acelasi lucru } } }
  19. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & KEY_YES) { if(IsPlayerInRangeOfPoint(playerid, ...) // coord jobului tau { if(PlayerInfo[playerid][pJob] == idul_jobului) { // ii iei jobul } else { // codul prin care ii dai jobul respectiv. } } else if(IsPlayerInRangeOfPoint(playerid, ...) // coord altui job { // acelasi lucru } } }
  20. new Float:procent = float(PlayerInfo[playerid][pRespect]) / float(points) * 100.0; new str[50]; format(str, 50, "%.0f", procent); PlayerTextDrawSetString(playerid, TextdrawTau[playerid], str); PlayerTextDrawShow(playerid, TextdrawTau[playerid]); Unde "TextdrawTau[playerid]" este textdraw-ul pe care tu l-ai creat.
  21. new PlayerBar:RespectBar[MAX_PLAYERS]; new points = PlayerInfo[playerid][pLevel] * 3; RespectBar[playerid] = CreatePlayerProgressBar(playerid, 22.999992, 283.185150, 130, 10, COLOR_GENANNOUNCE, 100.0, BAR_DIRECTION_RIGHT); ShowPlayerProgressBar(playerid, RespectBar[playerid]); SetPlayerProgressBarMaxValue(playerid, RespectBar[playerid], points); SetPlayerProgressBarValue(playerid, RespectBar[playerid], PlayerInfo[playerid][pRespect]); ShowPlayerProgressBar(playerid, RespectBar[playerid]); Si de fiecare data cand cresti RP-urile jucatorului adaugi: SetPlayerProgressBarValue(playerid, RespectBar[playerid], PlayerInfo[playerid][pRespect]); ShowPlayerProgressBar(playerid, RespectBar[playerid]);
×
×
  • Create New...