-
Posts
555 -
Joined
-
Last visited
-
Days Won
13
Everything posted by Matt
-
[REZOLVAT] Care este cel mai bun gamemode big-zone pe net?
Matt replied to fkbarca's topic in Closed topics
Toate sunt la fel de prost optimizate si buguite, iti recomand new.pwn. -
In mare parte da, am schimbat vegetatia, hud-ul si cateva masini
-
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/
-
Arata codul.. EDIT: sorry pentru double post.
-
Nu are rost sa ii seteze pozitia si angle-ul daca l-a creat, se pun automat coordonatele atunci.
-
Acel actor ar trebui sa fie si in alt virtual?
-
Nu stiu, animatia ti-o cauti singur. Poate te ajuta: http://wiki.sa-mp.com/wiki/Animations
-
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.
-
Cum a spus si @Dani3l.. Ai aici un link care sa te ajute. http://wiki.sa-mp.com/wiki/CreateActor
-
Helau. https://discord.gg/hZknp7F
-
Hm, arata si ce este in mysql_log..
-
Arata si unde ii dai valoarea 1 variabilei ConnType.
-
Pai, am vrut sa fac sistem de telefon dar era prea simplu cel cu /call <nr>. Am zis ca arata mai bine asa ????
-
[REZOLVAT] Problema - quest-uri zilnice cu checkpoint-urile
Matt replied to Ionut09's topic in Closed topics
Probabil, nu stiu ce ai tu in gm. -
[REZOLVAT] Problema - quest-uri zilnice cu checkpoint-urile
Matt replied to Ionut09's topic in Closed topics
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. -
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)
-
Incearca sa-l bagi in OnGamemodeInit, poate o functie din acel include nu este chemata. RemoveBuildingForPlayer o bagi in OnPlayerConnect.
-
Esti sigur ca mapping-ul din acea zona nu depaseste 1000 de obiecte? Ai incarcat mapping-ul la OnGamemodeInit?
-
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 } } }
-
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 } } }
-
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.
-
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]);
ABOUT LEAKS COMMUNITY
LEAKS.RO is a resource community where aspiring webmasters can share content and receive support for a wide variety of software platforms — no license required.