Jump to content

Hackeru Suprem

Membru
  • Posts

    39
  • Joined

  • Last visited

  • Days Won

    2

Hackeru Suprem last won the day on January 1

Hackeru Suprem had the most liked content!

Profile Information

  • Sex
    Masculin
  • In-game Name
    Cristi38
  • Level of knowledge
    Avansat

Contact Methods

  • Discord
    hackerusuprem

Recent Profile Visitors

408 profile views

Hackeru Suprem's Achievements

Explorer

Explorer (4/14)

  • Dedicated Rare
  • Collaborator
  • Conversation Starter
  • One Month Later
  • Week One Done

Recent Badges

2

Reputation

  1. https://www.sa-mp.ro/applications/core/interface/file/attachment.php?id=2449
  2. vezi k AI-ul nu te face 'scripter'

  3. hackerusuprem pe discord, daca mai cauti scripter

  4. new PlayerLastPos[MAX_PLAYERS][3]; YCMD:specoff(playerid, params[], help) { if (PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pHelper] < 2) return SCM(playerid, COLOR_WHITE, AdminOnly); if (Spectate[playerid] == 255) return SCM(playerid, COLOR_GREY, "You are not in spectate mode."); TogglePlayerControllable(playerid, 1); TogglePlayerSpectating(playerid, 0); if (PlayerLastPos[playerid][0] != 0.0) { SetPlayerPos(playerid, PlayerLastPos[playerid][0], PlayerLastPos[playerid][1], PlayerLastPos[playerid][2]); } else { SpawnPlayer(playerid); } SCM(playerid, -1, "You are no longer in spectate mode!"); Iter_Remove(MySpec[Spectate[playerid]], playerid); Spectate[playerid] = 255; SpecPlayers[playerid] = 0; LastRecon[playerid] = 1; PlayerTextDrawHide(playerid, SpectatorTD); PlayerLastPos[playerid][0] = 0.0; PlayerLastPos[playerid][1] = 0.0; PlayerLastPos[playerid][2] = 0.0; return true; }
  5. CMD:players(playerid, params[]) { new onlinePlayers = 0; for (new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { onlinePlayers++; } } format(string, sizeof(string), "There are %d players online.", onlinePlayers); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); return 1; }
  6. CMD:makeadmin(playerid, params[]) { if (pInfo[playerid][pAdmin] >= 7) { new giveplayerid, level; if (sscanf(params, "ud", 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."); pInfo[giveplayerid][pStaff] = 0; if (level >= 1 && level <= 6) { new status[16]; if (level > pInfo[giveplayerid][pAdmin]) { format(status, sizeof(status), "promoted"); 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][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; } else { return SendClientMessage(playerid, COLOR_DARKGRAY, "Invalid Admin Level."); } } else { return SendClientMessage(playerid, COLOR_DARKGRAY, AdminError); } }
  7. CMD:set(playerid, params[]) { if (!IsPlayerConnected(playerid)) return 0; if (!IsPlayerAdmin(playerid)) { SendClientMessage(playerid, -1, "You are not authorized to use this command."); return 1; } new targetid, attribute, value; if (sscanf(params, "iii", targetid, attribute, value)) { if (!IsPlayerConnected(targetid)) { SendClientMessage(playerid, -1, "Target player is not connected."); return 1; } switch (attribute) { case 1: // Money GivePlayerMoney(targetid, value); SendClientMessage(playerid, -1, "You've set the player's money."); break; case 2: // PP SetPlayerPP(targetid, value); SendClientMessage(playerid, -1, "You've set the player's PP."); break; case 3: // Giftpoints SetPlayerGiftPoints(targetid, value); SendClientMessage(playerid, -1, "You've set the player's Giftpoints."); break; default: SendClientMessage(playerid, -1, "Invalid attribute ID."); break; } } else { SendClientMessage(playerid, -1, "Usage: /set [playerid] [attribute] [value]"); } return 1; }
  8. #define COLOR_JADE 0x87FF1FFF YCMD:bonus(playerid, params[], help) { if (PlayerInfo[playerid][pLevel] == 1) { GivePlayerCash(playerid, 250000); PlayerInfo[playerid][pLevel] = 2; SCM(playerid, COLOR_JADE, "Ai primit 250.000$ si ai crescut cu un nivel pentru ca ai folosit comanda \"/bonus\"!"); } return 1; }
  9. forward AutoSleep(playerid); public OnPlayerConnect(playerid) { AutoSleep(playerid); return 1; } public AutoSleep(playerid) { CMD:sleep(playerid, ""); }
  10. CMD:v(playerid, params[]) { new player_vehicles[256]; new count = 0; for(new vehicleid = 0; vehicleid < MAX_VEHICLES; vehicleid++) { if(IsPlayerInVehicle(playerid, vehicleid)) { player_vehicles[count] = vehicleid; count++; } } if(count > 0) { SendClientMessage(playerid, -1, "Your Vehicles:"); for(new i = 0; i < count; i++) { new modelid = GetVehicleModel(player_vehicles[i]); SendClientMessage(playerid, -1, format("Vehicle ID: %d, Model: %s", player_vehicles[i], GetVehicleName(modelid)); } } else { SendClientMessage(playerid, -1, "You don't own any vehicles."); } return 1; }
  11. #define INFO_DIALOG 1 new Dialog:infoDialog[MAX_PLAYERS]; public OnPlayerConnect(playerid) { infoDialog[playerid] = CreateDialog(INFO_DIALOG, -1, "Server Information", "Welcome to the server! This is a sample /info command.", "Close", " ", DIALOG_STYLE_MSGBOX, "OnInfoDialogResponse"); return 1; } public OnInfoDialogResponse(playerid, response, listitem, inputtext[]) { if (response) { SendClientMessage(playerid, COLOR_WHITE, "You closed the information dialog."); } return 1; } CMD:info(playerid, params[]) { ShowPlayerDialog(playerid, INFO_DIALOG, DIALOG_STYLE_MSGBOX, "Server Information", "This is the server information dialog.\nFeel free to add more details here.", "Close", " ", "OnInfoDialogResponse"); return 1; }
  12. YCMD:order(playerid, params[], help) { new result[30]; if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if (!PlayerToPoint(100, playerid, -2158.6482, 642.3111, 1052.3750)) return SCM(playerid, COLOR_GREY, "Nu ești în HQ!"); if (sscanf(params, "s[30]", result)) { SCM(playerid, COLOR_GREY, "Syntax: {FFFFFF}/order <id>"); SCM(playerid, COLOR_WHITE, "1. Knife (10 $) | 2. SD-Pistol (100 $) | 3. Sniper (200 $)"); return true; } if (PlayerInfo[playerid][pGunLic] == 0) return SCM(playerid, -1, "Nu ai licență de arme!"); if (strcmp(result, "1", true) == 0) { if (PlayerMoney(playerid, 10)) return true; ServerWeapon(playerid, 4, 200); SCM(playerid, COLOR_MONEY, "Ți-ai cumpărat un cuțit la prețul de 10$."); GivePlayerCash(playerid, 10); return true; } else if (strcmp(result, "2", true) == 0) { if (PlayerMoney(playerid, 100)) return true; ServerWeapon(playerid, 23, 200); SCM(playerid, COLOR_MONEY, "Ți-ai cumpărat un SD-Pistol la prețul de 100$."); GivePlayerCash(playerid, 100); return true; } else if (strcmp(result, "3", true) == 0) { if (PlayerMoney(playerid, 200)) return true; ServerWeapon(playerid, 34, 200); SCM(playerid, COLOR_MONEY, "Ți-ai cumpărat un Sniper la prețul de 200$."); GivePlayerCash(playerid, 200); return true; } else { return SCM(playerid, COLOR_GREY, "ID invalid!"); } } if (!IsMafie(playerid)) return SCM(playerid, COLOR_GREY, "Nu ești membru al unei mafii."); if (PlayerInfo[playerid][pGunLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai licență de arme."); if (GetPlayerInterior(playerid) == 0) return SCM(playerid, COLOR_WHITE, "Nu ești în HQ."); if (!IsAtOrderPlace(playerid)) return true; new x = PlayerInfo[playerid][pMember] - 1, var[3]; if (SafeInfo[x][sMaterials] < ValueMafie[0][1] && SafeInfo[x][sMoney] < ValueMafie[0][0]) return SCM(playerid, COLOR_GREY, "Nu ai materiale sau bani suficienți."); for (new i = 0; i < 5; i++) { if (SafeInfo[x][sMaterials] < ValueMafie[i][1] && SafeInfo[x][sMoney] < ValueMafie[i][0] || !PlayerInfo[playerid][pGuns][i]) continue; SafeInfo[x][sMaterials] -= ValueMafie[i][1]; SafeInfo[x][sMoney] -= ValueMafie[i][0]; ServerWeapon(playerid, GunMafieID[0][i], 60); var[0]++; var[1] += ValueMafie[i][1]; var[2] += ValueMafie[i][0]; } SaveSeif(x); format(gString, 100, "(/order) {FFFFFF}Ai primit %d arme și ai dat %s materiale și $%s.", var[0], FormatNumber(var[1]), FormatNumber(var[2])); SCM(playerid, COLOR_LGREEN, gString); return true; } function IsMafie(playerid) { return PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10; }
  13. CMD:vtag(playerid, params[]) { new eString[128]; if (PlayerInfo[playerid][pVIP] < 2) { return ErrorType(playerid, 3); } else if (sscanf(params, "s[128]", eString)) { return SendUsage(playerid, "/vtag [tag]"); } PlayerInfo[playerid][VIPTag] = eString; SendClientMessage(playerid, 0xFFFF00FF, "Tagul tău VIP a fost schimbat cu succes! Folosește /removevtag pentru a-l șterge."); return 1; }
  14. CMD:getbike(playerid, params[]) { if (!IsPlayerConnected(playerid)) return 0; new Float:x, Float:y, Float:z, Float:angle; x = 123.45; y = 67.89; z = 3.0; angle = 0.0; new vehicleid = CreateVehicle(481, x, y, z, angle, -1, -1, 10000); if (vehicleid != INVALID_VEHICLE_ID) { PutPlayerInVehicle(playerid, vehicleid, 0); SendClientMessage(playerid, COLOR_GREEN, "You've received a bike."); } else { SendClientMessage(playerid, COLOR_RED, "Failed to spawn the bike."); } return 1; } CMD:despawnbike(playerid, params[]) { if (!IsPlayerConnected(playerid)) return 0; new vehicleid = GetPlayerVehicleID(playerid); if (vehicleid != INVALID_VEHICLE_ID) { DestroyVehicle(vehicleid); SendClientMessage(playerid, COLOR_GREEN, "Your bike has been despawned."); } else { SendClientMessage(playerid, COLOR_RED, "You don't have a bike to despawn."); } return 1; }
×
×
  • 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.