-
Posts
62 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by .№_Fpk.Marius_™.
-
pune toata comanda. C uneori eroarea nu ii numa di randu respectiv.
-
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; }
-
[email protected] trimite-mi GM-u pi e-Mail.
-
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.
-
Da-o-n pizda ma-sii di treaba...
-
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.
-
Arata line-urile alea.
-
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..
-
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.
-
Il pui sub: if(IsPlayerConnected(giveplayerid)) {
-
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; }
-
cauta CMD:locations, sh fa ci am zis eu.
-
oricum ar fi, tre s ai ShowPlayerDialog la comanda aia, cauta id-u dialogului sh tre s ai acolo if(listitem == gasesti acolo totul
-
Cheater *:)). Daca mai si funtioneaza. Ii chiar fain. Bravo. 7.5
-
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 }
-
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] ?
-
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.
-
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.
-
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.
-
Inteleg. N-am zis nica *:))
-
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..
-
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
-
asta am zis sh eu, sh creca isi dadea el seama.. zic. toti am zis aceeasi treaba *:)) da man, asta am zis
-
ia pune cu format numa unde ai tu problema.