Jump to content

Gawitkkk

Membru
  • Posts

    235
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Gawitkkk

  1. Gawitkkk

    Nick Player

    Da-ne si liniile scriptului, ca sa stim unde este greseala si cum te putem ajuta.
  2. Deoarece la serverele Role - Play este de foarte mare ajutor. Daca este un player care are wanted si un poltist vrea sa il omoare, nu poate deoarece este afk sau face bug abuse. Sau daca e un Hitmen ce are un contract.. Gandeste-te putin..
  3. M-am uitat la tot sistemul cap - coada. Ori sunt pro*t, ori sunt chior... Nu inteleg unde e greseala.
  4. else if(PlayerPaintballing[playerid] != 0) { //SendClientMessage(playerid, COLOR_WHITE, "Debug4"); ResetPlayerWeaponsEx(playerid); GivePlayerWeaponEx(playerid, 29, 999); rand = random(sizeof(PaintballSpawns)); SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]); //return 1; }
  5. Nume: Gawitkkk Nume tutorial: System Pay'N'Spray Descriere: Un tutorial in care sa ne invatati cum sa facem un system de pay'n'spray.
  6. Nu este ciudat, este bun. Numai ca nu inteleg unde este greseala de nu isi da spawn in paintball, isi da spawn in hq sau in casa..
  7. Acesta este tot sistemul Paintball. forward PaintballEnded(); forward StartPaintball(); forward PreparePaintball(); new StartingPaintballRound = 0; new AnnouncedPaintballRound = 0; new PaintballPlayers = 0; new PaintballRound = 0; new PaintballWinner = 999; new PaintballWinnerKills = 0; new PlayerPaintballing[MAX_PLAYERS]; new PlayerPaintballKills[MAX_PLAYERS]; new Float:PaintballSpawns[7][3] = { {-394.8027,2232.2317,42.4297}, {-430.8412,2240.5371,42.9834}, {-369.2361,2248.3127,42.4844}, {-350.8910,2218.0215,42.4912}, {-384.0544,2206.2908,42.4235}, {-395.7100,2214.9480,42.4297}, {-445.3718,2222.5481,42.4297} }; public PreparePaintball() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerPaintballing[i] != 0) { SendClientMessage(i, COLOR_YELLOW, "{ee5555}Paintball: {a9c4e4}The match will start in 20 seconds."); } } } SetTimer("StartPaintball", 20000, 0); return 1; } public StartPaintball() { PaintballRound = 1; StartingPaintballRound = 0; PaintballWinner = 999; PaintballWinnerKills = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerPaintballing[i] != 0) { ResetPlayerWeaponsEx(i); GivePlayerWeaponEx(i, 29, 999); TogglePlayerControllable(i, 1); SendClientMessage(i, COLOR_YELLOW, "{ee5555}Paintball: {a9c4e4}The match started and it will last 4 days!"); PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0); } } } SetTimer("PaintballEnded", 240000, 0); return 1; } public PaintballEnded() { new string[256]; new name[MAX_PLAYER_NAME]; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerPaintballing[i] != 0) { if(IsPlayerConnected(PaintballWinner)) { GetPlayerName(PaintballWinner, name, sizeof(name)); format(string,sizeof(string), "{ee5555}Paintball: %s {a9c4e4}won the match with %d kills!",name,PaintballWinnerKills); SendClientMessage(i, COLOR_WHITE, string); } ResetPlayerWeaponsEx(i); PlayerPaintballing[i] = 0; SetPlayerPos(i, SBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ]); } } } AnnouncedPaintballRound = 0; PaintballRound = 0; return 1; } if(PlayerPaintballing[playerid] != 0) { PaintballPlayers --; } else if(PlayerPaintballing[playerid] != 0) { //SendClientMessage(playerid, COLOR_WHITE, "Debug4"); ResetPlayerWeaponsEx(playerid); GivePlayerWeaponEx(playerid, 29, 999); rand = random(sizeof(PaintballSpawns)); SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]); //return 1; } if(PlayerPaintballing[playerid] != 0) { PlayerPaintballKills[killerid] ++; if(PlayerPaintballKills[killerid] > PaintballWinnerKills) { new killer[MAX_PLAYER_NAME]; PaintballWinner = killerid; PaintballWinnerKills = PlayerPaintballKills[killerid]; GetPlayerName(killerid, killer, sizeof(killer)); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerPaintballing[i] != 0) { format(string, sizeof(string), "* %s conduce cu %d Kill-uri.",killer,PaintballWinnerKills); SendClientMessage(i, COLOR_WHITE, string); } } } } return 1; } if(StartingPaintballRound == 1 && AnnouncedPaintballRound == 0) { AnnouncedPaintballRound = 1; if(PlayerPaintballing[i] != 0) { SendClientMessage(i, COLOR_YELLOW, "Meciul de Paintball v-a incepe in 15 secunde."); } } if(i == 10) { PaintballPlayers ++; PlayerPaintballing[playerid] = 1; new rand = random(sizeof(PaintballSpawns)); SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]); TogglePlayerControllable(playerid, 0); } if(i == 10) { PaintballPlayers ++; PlayerPaintballing[playerid] = 1; new rand = random(sizeof(PaintballSpawns)); SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]); TogglePlayerControllable(playerid, 0); } Si totus, nu inteleg unde este greseala, totul este corect..
  8. Daca stiam sa il fac, nu mai ceream ajutorul. Ma tot uit pe site-uri si tot nu gasesc, nu reusesc.
  9. Nick:Gawitkkk Problema: Am reusit sa dau de cap unui sistem de Paintball si sa il fac, insa de fiecare data cand sunt in el si sunt omorat, imi da spawn la hq in loc sa imi dea in Paintball. Erori / warnings: - Lini/script: - Ai incercat sa rezolvi singur ?: Da.
  10. Tot sistemul as vrea sa mi-l dai, daca poti..
  11. Nick: Gawitkkk Problema: As dori sa stiu cum pot face ca atunci cand o persoana este afk sa poata fii omorata. Erori / warnings: - Lini/script: - Ai incercat sa rezolvi singur ?: Da, dar tot nu reusesc sa ii dau de cap.
  12. Asa este, trebuia pus PLAYER_MARKERS_MODE_OFF.,asa se intampla cand te grabesti . Mersi frumos pentru ajutor.
  13. Inca apare acel punct...
  14. Nu am nimic de genul in GameMode.
  15. Nick: Gawitkkk Problema: Salut baieti, intampin si eu o problema la GameMode-ul meu. La factiunea nr 6 membrii apar pe radarmap cu culoarea mov si nu stiu cum sa fac sa nu mai apara. Stiu ca era o functie ce trebuie stearsa ca sa nu mai apara.. Erori / warnings: Lini/script: - Ai incercat sa rezolvi singur ?: Da. In imagine se vede checkpoint-ul mov in radardisc. P.S Se vede si bara rpg jos in dreapta insa sper sa nu fie considerata reclama sau altceva.
  16. Nume: Gawitkkk Nume tutorial: requestevent Descriere: Dupa cum puteti sti, a fost lasat un sistem de requestevent de catre DanisHaq insa cel postat pe site-ul samp.com nu este bun si are multe erori. As dori sa ma ajutati sa il repar. new eventorganizer[MAX_PLAYERS]; new requestingevent[MAX_PLAYERS]; new requestingtitle[MAX_PLAYERS][50]; new requestinglocation[MAX_PLAYERS][50]; new requestingdescription[MAX_PLAYERS][100]; new requestingprize[MAX_PLAYERS]; new requestingtime[MAX_PLAYERS][50]; new activeevent; new eventtitle[50]; new eventlocation[50]; new eventdescription[100]; new eventprize; new eventtime[50]; requestingevent[playerid] = 0; eventorganizer[playerid] = 0; CMD:event(playerid, params[]) { if(activeevent == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}There is currently no active event running."); new string[300], name[MAX_PLAYER_NAME]; for(new i = 0; i < MAX_PLAYERS; i ++) { if(eventorganizer[i] == 1) { GetPlayerName(i, name, sizeof(name)); } } SendClientMessage(playerid, 0xFFFFFFFF, "-------------------------------------------"); format(string, sizeof(string), "{FFFF00}Title: %s Location: %s Time: %s", eventtile, eventlocation, eventtime); SendClientMessage(playerid, 0xFFFFFFFF, string); format(string, sizeof(string), "{FFFF00}Organizer: %s Prize: $%s", third, Comma(eventprize)); SendClientMessage(playerid, 0xFFFFFFFF, string); format(string, sizeof(string), "{FFFF00}Description: %s", eventdescription); SendClientMessage(playerid, 0xFFFFFFFF, string); SendClientMessage(playerid, 0xFFFFFFFF, "-------------------------------------------"); return 1; } CMD:e(playerid, params[]) { if(eventorganizer[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}You're not the organizer of the event."); new text[250]; if(sscanf(params, "s[250]", text)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Syntax: /e [text]"); new string[300], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "{7094DB}Event Organizer %s: %s", name, text); SendClientMessageToAll(0xFFFFFFFF, string); return 1; } CMD:cancelrequest(playerid, params[]) { if(requestingevent[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}You're not requesting an event."); requestingevent[playerid] = 0; SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Your event request has been cancelled."); return 1; } CMD:stopevent(playerid, params[]) { if(activeevent == 0 && IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}There isn't any events to stop."); if(eventorganizer[playerid] == 0 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}You're not the organizer of the event."); for(new i = 0; i < MAX_PLAYERS; i ++) { eventorganizer[i] = 0; } SendClientMessageToAll(0xFFFFFFFF, "-------------------------------------------"); SendClientMessageToAll(0xFFFFFFFF, "{FFFF00}Event over."); SendClientMessageToAll(0xFFFFFFFF, "-------------------------------------------"); activeevent = 0; return 1; } CMD:acceptevent(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}You're not an admin."); if(activeevent == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}There's already an active event."); new evetnid; if(sscanf(params, "d", eventid)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Syntax: /acceptevent [eventid]"); if(requestingevent[eventid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Invalid event ID."); strmid(eventtitle, requestingtitle[eventid], 0, strlen(requestingtitle[eventid])); strmid(eventlocation, requestinglocation[eventid], 0, strlen(requestinglocation[eventid])); strmid(eventdescription, requestingdescription[eventid], 0, strlen(requestingdescription[eventid])); eventprize = requestingprize[eventid]; strmid(eventtime, requestingtime[eventid], 0, strlen(requestingtime[eventid])); new string[300], name[MAX_PLAYER_NAME]; GetPlayerName(eventid, name, sizeof(name)); SendClientMessageToAll(0xFFFFFFFF, "-------------------------------------------"); format(string, sizeof(string), "{FFFF00}Event: %d Title: %s Location: %s Time: %s", eventid, eventtitle, eventlocation, eventtime); SendClientMessageToAll(0xFFFFFFFF, string); format(string, sizeof(string), "{FFFF00}Organizer: %s Prize: $%s", name, Comma(eventprize)); SendClientMessageToAll(0xFFFFFFFF, string); format(string, sizeof(string), "{FFFF00}Description: %s", eventdescription); SendClientMessageToAll(0xFFFFFFFF, string); SendClientMessageToAll(0xFFFFFFFF, "-------------------------------------------"); eventorganizer[eventid] = 1; requestingevent[eventid] = 0; activeevent = 1; return 1; } CMD:requestevent(playerid, params[]) { if(activeevent == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}There's already an active event."); if(requestingevent[playerid] == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}You're already requesting an event, cancel it first."); new title[50], location[50], description[100], prize, time[50]; if(sscanf(params, "p<|>s[50]s[50]s[50]s[100]d", title, location, time, description, prize)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Syntax: /requestevent [Title|Location|Time|Description|Prize]"); if(strlen(title) < 1 || strlen(title) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Invalid amount of characters in title."); if(strlen(location) < 1 || strlen(location) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Invalid amount of characters in location."); if(strlen(time) < 1 || strlen(time) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Invalid amount of characters in time."); if(strlen(description) < 1 || strlen(description) > 100) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Invalid amount of characters in description."); if(prize < 1 || prize > 5000000) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Invalid prize amount."); new string[300], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); requestingevent[playerid] = 1; strmid(requestingtitle[playerid], title, 0, strlen(title)); strmid(requestinglocation[playerid], location, 0, strlen(location)); strmid(requestingdescription[playerid], description, 0, strlen(description)); requestingprize[playerid] = prize; strmid(requestingtime[playerid], time, 0, strlen(time)); if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, "-------------------------------------------"); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerAdmin(i)) { SendClientMessage(i, 0xFFFFFFFF, "-------------------------------------------"); } } format(string, sizeof(string), "{FFFF00}Event %d has been requested, details are below.", playerid); if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, string); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerAdmin(i)) { SendClientMessage(i, 0xFFFFFFFF, string); } } format(string, sizeof(string), "{FFFF00}Event: %d Title: %s Location: %s Time: %s", playerid, title, location, time); if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, string); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerAdmin(i)) { SendClientMessage(i, 0xFFFFFFFF, string); } } format(string, sizeof(string), "{FFFF00}Organizer: %s Prize: $%s", name, Comma(prize)); if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, string); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerAdmin(i)) { SendClientMessage(i, 0xFFFFFFFF, string); } } format(string, sizeof(string), "{FFFF00}Description: %s", description); if(PlayerData[playerid][pAdmin] < 1) SendClientMessage(playerid, 0xFFFFFFFF, string); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerAdmin(i)) { SendClientMessage(i, 0xFFFFFFFF, string); } } format(string, sizeof(string), "{FFFF00}Use [/acceptevent %d] to accept this event.", playerid); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerAdmin(i)) { SendClientMessage(i, 0xFFFFFFFF, string); } } SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Your event is pending approval from an admin, please wait."); if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, "-------------------------------------------"); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerAdmin(i)) { SendClientMessage(i, 0xFFFFFFFF, string); } } return 1; stock Comma(numbers) { new temp[100], counter = -1; valstr(temp, numbers); for(new i = strlen(temp);i > 0; i--) { counter++; if(counter == 3) { strins(temp, ",", i); counter = 0; } } return temp; }
  17. Un GameMode la care din cate pot observa, chiar s-a muncit. 10/10
  18. Din doua imagini mi-am dat seama ca este fostul Pro - Gaming. Daca era sa fie facut 100% de baietii aia care i-ai spus tu mai sus ar fi trebuit sa descarce un grandlarc si sa inceapa pe el de la 0, este foarte usor sa schimbi niste credite. 1.5/5
  19. Nu mi se pare cine stie ce, nu este chiar asa de avansat. 2/5
  20. Am impresia ca iti bati joc, chiar nu stii nimic... pui pentru orice, sunt sigur ca nici macar nu ai incercat sa rezolvi singur problema. CTRL + F in pawno si cauta #define name, si sterge-l. Este definit de doua ori, este normal sa iti dea eroare.
  21. Nume: Gawitkkk Nume tutorial: Attach Object. Descriere: As dori un tutorial care sa explice cum se poate pune un girofar pe o masina, atunci cand dau h sa inceapa sa licureasca. *Cred ca toata lumea stie la ce ma refer.
  22. Am reusit! WopsS esti un geniu, mersi frumos! Ti-am acordat un +1 pentru efortul pe care l-ai depus pentru mine, stiu ca te-am cam stresat putin .
  23. Din acest tutorial, poarta se misca din comanda, insa eu vreau cand apas butonul h intr-o masina de dep, fiind membru dep.
×
×
  • 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.