SA-MP Forums Archive
[FilterScript] WhoIsAdmin v1.4 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] WhoIsAdmin v1.4 (/showthread.php?tid=423865)



WhoIsAdmin v1.4 - sheders - 19.03.2013

WhoIsAdmin v1.4


Hello welcome to WhoIsAdmin v1.4.


Added:


NEW: Added in 1.4 : Rules system ''If you dont accept you will be kicked''

Added in v1.2: /admins ''With online fuction''
Added in v1.2: /credits ''Please don't remove the credits''






Quote:
Info about the added scripts:

1.The rules system i added in v1.4 make so when a player join they need to accept the rules or be kicked. They need to accept the rules every time they join , so if you change the rules
they will see it next time they join.



2. /Admin script i added in v1.2 work like this , when a player type /admins they will see who admins some are online ''You don't need to rcon if you have a own admin system with ranks''


3. /credits script i added in v.1.2 just show the credits of the script. ''Don't remove the credits
''


Pictures of rules system:

http://imageshack.us/photo/my-images/266/samp003ni.png/ IT'S LOOK LIKE THIS WHEN YOU JOIN!
http://imageshack.us/photo/my-images/6/samp005cq.png/ WHEN YOU DONT ACCEPT
http://imageshack.us/photo/my-images/843/samp001uz.png/ WHEN YOU ACCEPT




Download:http://www.4shared.com/rar/aTkiqMTW/WhoIsAdmin_v14.html
PasteBin:http://pastebin.com/7D4BDY5p


Please leave a comment



PLEASE DON'T REMOVE THE CREDITS



Credits: Sheders(Scripted) Fezhj(BetaTest)



Re: WhoIsAdmin v1.4 - S4ba - 19.03.2013

lol easy, good job


Re: WhoIsAdmin v1.4 - sheders - 19.03.2013

Quote:
Originally Posted by S4ba
Посмотреть сообщение
lol easy, good job
Thanks man i know it's very simple , but iЁm pretty new at this. I hope i will be better


Re: WhoIsAdmin v1.4 - DiGiTaL_AnGeL - 19.03.2013

A lot of unusefull defines, and you've included those:
pawn Код:
#include <sscanf2> //sscanf2
#include <foreach>
#include <dini>
Also why do you use OnDialogResponse and OnPlayerSpawn?


Re: WhoIsAdmin v1.4 - sheders - 19.03.2013

Quote:
Originally Posted by DiGiTaL_AnGeL
Посмотреть сообщение
A lot of unusefull defines, and you've included those:
pawn Код:
#include <sscanf2> //sscanf2
#include <foreach>
#include <dini>
Also why do you use OnDialogResponse and OnPlayerSpawn?
I use that includes because i will use them in my other v i make, so i have add colors so its done. I use OnPlayer spawn because when a player spawn so will the rule pop up, that's so i learned?


Re: WhoIsAdmin v1.4 - FiReMaNStone - 19.03.2013

LoL Its Very SImple


Re: WhoIsAdmin v1.4 - sheders - 19.03.2013

Quote:
Originally Posted by FiReMaNStone
Посмотреть сообщение
LoL Its Very SImple
Yes , i know it's simple.


Re: WhoIsAdmin v1.4 - feliphemort - 19.03.2013

good!!!


Re: WhoIsAdmin v1.4 - sheders - 19.03.2013

Quote:
Originally Posted by feliphemort
Посмотреть сообщение
good!!!
Thank you. I try to be better


Re: WhoIsAdmin v1.4 - Dystans - 19.03.2013

I've a tip for you: this code can be written much easier and simpler, without unnecessary includes:
pawn Код:
#include <a_samp>
PlayerName(playerid)
{
    new N[MAX_PLAYER_NAME];
    GetPlayerName(playerid, N, sizeof(N));
    return N;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/admins", true, 7))
    {
        SendClientMessage(playerid, -1, "Admins online:");
        for(new i = 0; i <= MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && IsPlayerAdmin(i)) return SendClientMessage(playerid, -1, PlayerName(i));
        }
        return 1;
    }
    return 0;
}
But if it's your first script, then okay, it's good.