Jump to content

nobilzeusAdv

Membru
  • Posts

    176
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by nobilzeusAdv

  1. Acolo este pt 5 comenzi pe secundă făcut, modifica max_commands_sec 5 cu 1
  2. #define MAX_COMMANDS_ALLOWED_SEC 5 // commands #define MAX_COMMANDS_ALLOWED_TIME 1 // secounds new commandused[MAX_PLAYERS]=0; public OnPlayerText(playerid, text[]) { commandused[playerid]++; if(commandused[playerid] > MAX_COMMANDS_ALLOWED_SEC) { SCMT(COLOR_WARNING,"SERVER: %s a primit kick (posibil spam).",GetName(playerid)); KickEx(playerid); return 0; } SetTimerEx("resetCommands", MAX_COMMANDS_ALLOWED_TIME*1000, 0, "i", playerid); return 0; } function resetCommands(playerid) return commandused[playerid]=0;
  3. doar admin 7 o sa aiba acces, cred ca asta vrei cmd:makeadmin(playerid, params[]) { if(pInfo[playerid][pAdmin] < 7) return 1; new giveplayerid, level; if(sscanf(params, "ui", giveplayerid, level)) return SendSyntaxMessage(playerid, "/makeadmin [playerid/name] [level]"); if(giveplayerid == INVALID_PLAYER_ID || pInfo[giveplayerid][pStatus] != 1) return SendClientMessage(playerid, COLOR_DARKGRAY, "Player not connected."); if(level < 10 && level != 0) { new status[16]; if(level > pInfo[giveplayerid][pAdmin] ? format(status, sizeof(status), "promoted") : format(status, sizeof(status), "demoted")) pInfo[giveplayerid][pAdmin] = level, Iter_Add(Stafff, giveplayerid); format(AdminWText, sizeof(AdminWText), "Admcmd: %s has %s %s to Level %d Admin.", GetName(playerid), status, GetName(giveplayerid), level); SendAdminMessage(playerid, COLOR_ADMWARNING, AdminWText); format(stmsg[giveplayerid], 72, "Admin %s has %s your to Level %d Admin.", GetName(playerid), status, level); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, stmsg[giveplayerid]); mysql_format(MySQLCon, quMYSQL, 100, "UPDATE `players` SET `Admin`=%d WHERE `ID`=%d", pInfo[giveplayerid][pAdmin], pInfo[giveplayerid][pID]), mysql_tquery(MySQLCon, quMYSQL); return 1; } else if(level == 0) { if(pInfo[giveplayerid][pHelper] < 1) Iter_Remove(Stafff, giveplayerid), TextDrawHideForPlayer(giveplayerid, RHTXT); pInfo[giveplayerid][pStaff] = 0; pInfo[giveplayerid][pAdmin] = level; format(AdminWText, sizeof(AdminWText), "Admcmd: %s has removed %s from the Admin Team.", GetName(playerid), GetName(giveplayerid)); SendAdminMessage(playerid, COLOR_ADMWARNING, AdminWText); format(stmsg[giveplayerid], 72, "Admin %s has removed your from the Admin Team.", GetName(playerid)); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, stmsg[giveplayerid]); mysql_format(MySQLCon, quMYSQL, 100, "UPDATE `players` SET `Admin`=%d WHERE `ID`=%d", pInfo[giveplayerid][pAdmin], pInfo[giveplayerid][pID]), mysql_tquery(MySQLCon, quMYSQL); return 1; } return 1; } daca nu iti merge nici asa ai facut ceva la pAdmin, verifica
  4. nu se salveaza in baza de date probabil, sau nu se incarca din baza, verifica si tu
  5. cand intri pe server dai /save fix acolo unde te spawneaza si cauta coordonatele in gm
  6. functia CreateDynamicObject nu este la fel ca cea din include, are mai putine valori, ori completezi, ori schimbi includuri streamer posibil sa fie si la SetDynamicObjectMaterial, dar la CreateDynamicObject primesti cel mai des erori CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0) SetDynamicObjectMaterial(STREAMER_TAG_OBJECT objectid, materialindex, modelid, const txdname[], const texturename[], materialcolor = 0)
  7. if(pInfo[giveplayerid][pAdmin] < 7 && level >= 7) return n-ai voie
  8. Username: nobilzeusAdv Varsta: 18 Ce vinzi?:panel pro-gaming Dovada (că sunteti in posesia produsului) OBLIGATORIU: https://imgur.com/a/83tpt0E Pret: 10 euro Detalii de contact: discord: nobilzeus#0788 sau pm aici Alte precizari: panelul este facut de Tukson, cumparat cu 30 euro, am modificat si eu putin la el am adaugat pagina de joburi, am adaugat mai multe loguri, am modificat putin aspectul. site: https://pro-gaming.ro/panel/jobs poze cu el: https://imgur.com/a/8i7aMb4 Daca aveti burned va dau si functia de conectare a gm cu panel Este un panel modern, securizat cu multe functii
  9. ti am zis cand imi dai toti bani, nu doar banii pe gm
  10. Ti am dat gamemode ul nu am alta responsabilitate , te mai dai si scripter in plm
  11. posibil sa in vand, tot ce este pe el este foarte avansat si optimizat, nu am muncit atat sa il pun pe net
  12. Dacă nu oferi bani de la început nu cred ca o sa vina cineva, mai ales că pe forumul Asta nu prea au mai rămas oameni care stiu scripting
  13. acest tutorial este facut de ERA, copy paste.. macar pune credite
×
×
  • 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.