Jump to content

.№_Fpk.Marius_™.

Membru
  • Posts

    62
  • Joined

  • Last visited

Everything posted by .№_Fpk.Marius_™.

  1. pune toata comanda. C uneori eroarea nu ii numa di randu respectiv.
  2. CMD:someaza(playerid, params[]) { new string[9999], player1; if(sscanf(params, "u", player1)) return SendClientMessage(playerid, -1, "/Someaza [PlayerID]"); format(string, 9999, "[Ofiter LSPD]: %s, esti urmarit de politie! Trage pe dreata.", PlayerName2(playerid)); SendClientMessageToAll(-1, string); return 1; }
  3. adauga asta. nu intru-un public sau stock sau altceva. il pui undeva. liber stock PlayerName2(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); return name; } iar pentru "loose indentation" aranjeaza acoladele.
  4. CMD:someaza(playerid, params[]) { new string[256], player1; if(sscanf(params, "u", player1)) return SendClientMessage(playerid, -1, "/Someaza [PlayerID]") && format(string, 256, "[Ofiter LSPD] %s esti urmarit de politie! Trage pe dreata.", PlayerName2(playerid)); SendClientMessageToAll(-1, string); return 1; } Eu n-am erori. Acum, om vide. Iti pui tu restrctiile, culorile, sh restu.
  5. Nu ii o singura problema, is mult mai multe, sh nu apar in 15-20 di minute apar cand is "called" "chemate" di server. uita-te exact la fiecare ce-ti apare... ai o gramada.. cat dispri rezolvat. anuleaza orice tine de aleea, sau incearca sa remediezi cumva, ia-o usor usor..
  6. CMD:fac(playerid, params[]) { new string[678]; SendClientMessage(playerid, COLOR_RED, "___ FACTIONS OF QUANTUM GAMING NETWORK ___"); format(string,sizeof(string),"1. %s | Leader: %s | Members: %d", FactionInfo[0][FactionName], FactionInfo[0][FactionLeader], FactionInfo[0][FactionMembers]); SendClientMessage(playerid, COLOR_WHITE, string); format(string,sizeof(string),"2. %s | Leader: %s | Members: %d", FactionInfo[1][FactionName], FactionInfo[1][FactionLeader], FactionInfo[1][FactionMembers]); SendClientMessage(playerid, COLOR_WHITE, string); format(string,sizeof(string),"3. %s | Leader: %s | Members: %d", FactionInfo[2][FactionName], FactionInfo[2][FactionLeader], FactionInfo[2][FactionMembers]); SendClientMessage(playerid, COLOR_WHITE, string); format(string,sizeof(string),"4. %s | Leader: %s | Members: %d", FactionInfo[3][FactionName], FactionInfo[3][FactionLeader], FactionInfo[3][FactionMembers]); SendClientMessage(playerid, COLOR_WHITE, string); format(string,sizeof(string),"5. %s | Leader: %s | Members: %d", FactionInfo[4][FactionName], FactionInfo[4][FactionLeader], FactionInfo[4][FactionMembers]); SendClientMessage(playerid, COLOR_WHITE, string); format(string,sizeof(string),"6. %s | Leader: %s | Members: %d", FactionInfo[5][FactionName], FactionInfo[5][FactionLeader], FactionInfo[5][FactionMembers]); SendClientMessage(playerid, COLOR_WHITE, string); format(string,sizeof(string),"7. %s | Leader: %s | Members: %d", FactionInfo[6][FactionName], FactionInfo[6][FactionLeader], FactionInfo[6][FactionMembers]); SendClientMessage(playerid, COLOR_WHITE, string); format(string,sizeof(string),"8. %s | Leader: %s | Members: %d", FactionInfo[7][FactionName], FactionInfo[7][FactionLeader], FactionInfo[7][FactionMembers]); SendClientMessage(playerid, COLOR_WHITE, string); format(string,sizeof(string),"9. %s | Leader: %s | Members: %d", FactionInfo[8][FactionName], FactionInfo[8][FactionLeader], FactionInfo[8][FactionMembers]); SendClientMessage(playerid, COLOR_WHITE, string); format(string,sizeof(string),"10. %s | Leader: %s | Members: %d", FactionInfo[9][FactionName], FactionInfo[9][FactionLeader], FactionInfo[9][FactionMembers]); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } adaug-o pe toata langa aia, mie imi merge.
  7. Il pui sub: if(IsPlayerConnected(giveplayerid)) {
  8. CMD:ban(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 5) { new id,reason[128],string[200],giveplayer[30],sendername[30],type,str[128]; if(sscanf(params, "uds[128]", id,type,reason)) return SCM(playerid,COLOR_WHITE,"{B8DBFF}Syntax: /ban <Name/Playerid> <type(1-account 2-permanent)> <reason>"); if(IsPlayerConnected(id)) { if(id != INVALID_PLAYER_ID) { // Pui asta fix aici sub asta // if (PlayerInfo[playerid][pAdmin] <PlayerInfo [id][pAdmin]) return SendClientMessage (playerid,-1,"nu poti bana level mai mare ca al tau"); //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // GetPlayerName(id, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); if(type == 1) { format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", giveplayer, sendername, reason); SendClientMessageToAll(COLOR_LIGHTRED, string); PlayerInfo[id][pBanned] = 1; SendClientMessage(id,COLOR_LIGHTRED,"[BAN INFO]: Poti face o cerere de unban pe forumul nostru."); SendClientMessage(id,COLOR_LIGHTRED,"[HINT]: Te sfatuim sa faci o poza la aceste informatii,si sa o postezi cand faci cerere unban.Apasa F8 pentru a face poza."); format(str,sizeof(str),"UPDATE users SET `Banned`='1' WHERE `name`='%s'",giveplayer); mysql_query(SQL,str); new ip[25]; GetPlayerIp(id, ip, sizeof(ip)); Banlog(ip,PlayerInfo[id][pSQLID],PlayerInfo[playerid][pSQLID],reason,0); KickEx(id); } else if(type == 2) { format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", giveplayer, sendername, reason); SendClientMessageToAll(COLOR_LIGHTRED, string); PlayerInfo[id][pBanned] = 1; SendClientMessage(id,COLOR_LIGHTRED,"[BAN INFO]: Poti face o cerere de unban pe forumul nostru."); SendClientMessage(id,COLOR_LIGHTRED,"[HINT]: Te sfatuim sa faci o poza la aceste informatii,si sa o postezi cand faci cerere unban.Apasa F8 pentru a face poza."); format(str,sizeof(str),"UPDATE users SET `Banned`='1' WHERE `name`='%s'",giveplayer); mysql_query(SQL,str); new ip[25]; GetPlayerIp(id, ip, sizeof(ip)); Banlog(ip,PlayerInfo[id][pSQLID],PlayerInfo[playerid][pSQLID],reason,0); Ban(id); } return 1; } } else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Atentie: Acest player nu e conectat."); } else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly); } return 1; }
  9. cauta CMD:locations, sh fa ci am zis eu.
  10. oricum ar fi, tre s ai ShowPlayerDialog la comanda aia, cauta id-u dialogului sh tre s ai acolo if(listitem == gasesti acolo totul
  11. Cheater *:)). Daca mai si funtioneaza. Ii chiar fain. Bravo. 7.5
  12. Nu ii script, ii un simplu ajutor. Code-ul il bagi sub public OnPlayerStateChange(playerid, newstate, oldstate) { cauti asta in GM. apoi mai adaugi if(newstate == PLAYER_STATE_DRIVER) { sh pui asta new cNstr[128]; // ~~~~~~~~~ // format(cNstr, 128, "~p~%s", VehicleNames[pVehicleModel - 400]); GameTextForPlayer(playerid, cNstr, 1500, 1); // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // apoi il inchzi cu }
  13. Iti pot face eu ceva, dar vrei sa apara TAG-ul si cand playerul scrie in chat? Exemplu: [TAG].Marius.L7: Salut baieti! sau il vrei si cand dai la TAB sa vezi playerii sa-i apara si acolo [TAG] ?
  14. Sistemu cari il vroiai.

     

  15. public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { new cNstr[128]; // ~~~~~~~~~ // format(cNstr, 128, "~p~%s", VehicleNames[pVehicleModel - 400]); GameTextForPlayer(playerid, cNstr, 1500, 1); // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Culoare am pus #Purpuriu, cum era in imagine, tu poti alege ci culoare vrei. https://wiki.sa-mp.com/wiki/GameTextStyle Acolo pui code-u asta. Cat despre faza cu blocatu pune aici comanda, sa vad cum ii facuta.
  16. Mai exact ii complicat. trebuie sa pui factiunile intr-o baza de date, daca stii s lucrezi cat di cat in SQLite ii bun, daca nu.. ii greu.
  17. HEAD: Liderul exemplu: Lspd [Xsulescu] Online / Ofline. trebuie facut cu format(... "text", ah aici pui niste lucruri legate de rankuri, getplayername, "online/offline") "online/offline" - pentru asta fa ceva nou in registerul ceva care sa se reseteze mereu cand playerul se delogeaza si cand intra sa se faca "1", trebuie sa faci niste "Entry-uri" noi. daca nu intelegi nica, da-mi add pi FB: Fpk Marius. vorbim acolo. Ideea ii unar chiar originala, sh vreu s ti ajut s vad ci iese.
  18. ia-ti sob. ai interiors acolo, fa-ti comanda /myinterior, cand gasesti interiorul scrii /rs, sh cu /myinterior cauti interioru. nu-i greu. asta daca stii s faci ceva..
  19. pune sus sub #include-uri asta #pragma unused FormatNumber daca nici asa cauta FormatNumber prin GM, daca nu-l ai.. nu-l ai. faza cu #pragma tre s mearga, am avut sh eu la "ret_memcpy". Sper c ajuta. Bafta
  20. asta am zis sh eu, sh creca isi dadea el seama.. zic. toti am zis aceeasi treaba *:)) da man, asta am zis
  21. ia pune cu format numa unde ai tu problema.
×
×
  • 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.