Sign in to follow this  
Followers 0
Rob

Команда для списка богачей

1 post in this topic

Здравствуйте, решил выложить команду для просмотра списка богачей..

 


 

Спойлер

if (strcmp(cmd, "/forbs", true) == 0||strcmp(cmd, "/богачи", true) == 0) // Название команды можно поменять, на такое, которое удобно вам
        {
                if(IsPlayerConnected(playerid))
                {
                SendClientMessage(playerid, CLIGHTRED, "________________[Список богачей]_________________");
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                if(IsPlayerConnected(i))
                {
                if(GetPlayerMoney(i) >= 10000000) // Цифру можно поменять, это значение, с какого уровня денег человек появляется в этом списке
                {
                new sendername[MAX_PLAYER_NAME];
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, 256, " %s [%d] %d", GN(playerid), i, GetPlayerMoney(i));
                SendClientMessage(playerid, CLIGHTBLUE, string);
                }
                }
                }
                }
                return 1;
        }

 

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   You have pasted content with formatting.   Remove formatting

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

Loading...
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Zaire
      By Zaire
      CMD:ban(playerid, params[]) { if(!PlayerInfo[playerid][pLogged]) return true; if(PlayerInfo[playerid][pAdmin] < 3 || AdminLogged[playerid] == false) return true; if(sscanf(params, "uis[64]", params[0], params[1], params[2])) return SendClientMessage(playerid, COLOR_GREY, "Èñïîëüçîâàíèå: /ban [id/íèê èãðîêà] [êîë-âî äíåé] [ïðè÷èíà]"); if(!IsPlayerConnected(params[0]) || params[0] == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, ""TPLAYEROFFLINE""); if(!PlayerInfo[params[0]][pLogged]) return SendClientMessage(playerid, COLOR_GREY, ""TPLAYERNLOGGED""); if(PlayerInfo[params[0]][pDebugUser]) return SendClientMessage(playerid, COLOR_GREY, ""TPLAYEROFFLINE""); if(PlayerInfo[params[0]][pAdmin] >= 1339) return SendClientMessage(playerid, COLOR_GREY, "Ýòîò èãðîê Îñíîâàòåëü! Åãî íå âîçìîæíî çàáëîêèðîâàòü!"); if(params[1] > 365 && params[1] != -1 || params[1] < 1 && params[1] != -1 ) return SendClientMessage(playerid, COLOR_GREY, "Êîë-âî äíåé îò 1 äî 365!"); if(params[1] == -1 && PlayerInfo[playerid][pAdmin] < 1339) return SendClientMessage(playerid, COLOR_GREY, "Âû íå ìîæåòå çàáëîêèðîâàòü èãðîêà íàâñåãäà!"); if(!AddPlayerBan(params[0], playerid, params[1], params[2])) {  
    • sawe123
      By sawe123
      Есть ли какая то система видел в моде что можно настраивать вес авто ищу такую систему.
    • sawe123
      By sawe123
      Связанно с изменинем скорости 
       
    • User#30643
      By User#30643
      C:\Users\Admin\Desktop\SOSNOVKA ROLE PLAY (SERVER)\gamemodes\sosnovka.pwn(108 -- 115) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Admin\Desktop\SOSNOVKA ROLE PLAY (SERVER)\gamemodes\sosnovka.pwn(115) : warning 217: loose indentation C:\Users\Admin\Desktop\SOSNOVKA ROLE PLAY (SERVER)\gamemodes\sosnovka.pwn(115) : warning 215: expression has no effect C:\Users\Admin\Desktop\SOSNOVKA ROLE PLAY (SERVER)\gamemodes\sosnovka.pwn(115 -- 117) : warning 215: expression has no effect C:\Users\Admin\Desktop\SOSNOVKA ROLE PLAY (SERVER)\gamemodes\sosnovka.pwn(118) : warning 217: loose indentation C:\Users\Admin\Desktop\SOSNOVKA ROLE PLAY (SERVER)\gamemodes\sosnovka.pwn(118) : warning 215: expression has no effect Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase 1 Error.