HELP ME : I Want To Make An CLAN AREA So That It Checks the tag
#1

so doesnt matter just what i need is EXAMPLE :

if (strcmp("/tdbarea", cmdtext, true) == 0)
{
if (!GetPlayerTag(playerid) == "TdB") // TdB is my admin clan
{
SendClientMessage(playerid,red,"Youre Not An Admin, SO PISS OF!");
Kick(playerid);
}
else
{
SendClientMessage(playerid,red,"Welcome To Your Home Admin");
}
return 1;
}

or is there anythink like that?

i gogled it and forumed it
Reply
#2

As a tag you mean [TdB] in front of your name?
Reply
#3

Yeah he does
Reply
#4

there was a nice include from sandra i remember to detect parts of players name
Reply
#5

pawn Код:
if (strcmp("/tdbarea", cmdtext, true) == 0)
{
    new playername[24];
    GetPlayerName(playerid, playername, sizeof(playername));

    if (strcmp(playername, "[TdB]", false, 5) == 0) // 5 is the length of [TdB]
    {
        SendClientMessage(playerid,red,"Welcome To Your Home Admin");
    }
    else
    {
        SendClientMessage(playerid,red,"Youre Not An Admin, SO PISS OF!");
        Kick(playerid);
    }
    return 1;
}
Reply
#6

Quote:
Originally Posted by MadeMan
pawn Код:
if (strcmp("/tdbarea", cmdtext, true) == 0)
{
    new playername[24];
    GetPlayerName(playerid, playername, sizeof(playername));

    if (strcmp(playername, "[TdB]", false, 5) == 0) // 5 is the length of [TdB]
    {
        SendClientMessage(playerid,red,"Welcome To Your Home Admin");
    }
    else
    {
        SendClientMessage(playerid,red,"Youre Not An Admin, SO PISS OF!");
        Kick(playerid);
    }
    return 1;
}
il try that but im actualy searching an include that is you know...alitle easyer to use...i 100 % understand the script but still if there is anythink...please tell
Reply
#7

Easiest would be to check the tag when player connects in the server and then set the player to the team (every clan has diff. team).

Would make all these things for checking if player is in a clan alot easier.
Reply
#8

it wood...but after (if ) i made someone instantly admin he wood need to reconnect?
well you could say now to put in my admin script that it changes the team...well i...i acctualy do not know how to delete commands from Lethal Admin script... idk when i delete it it says error at line 6 700 i go to that line , but it like...is over the maximum...well i tryed your script the 1 that is not beta but when i registerd, then loggedin , and disconnected from my server connected password changed...i tried to do this again ( im 100 % sure that it was the right password ) it said again : Inccorect Password when i logged in...thats why i posted a request for an admin system...there i have the right 1 for my server but...id need someones help for it...when i created my own admin system and i type /rcon login **mypwhere** i loggedin then i typed /rcon loadfs myadminscript
it loaded it and closed the server . LOL o-O i looked in the server_log.txt and i found after it said : loading myadminscript.amx

***********************
Admin Script By Ur Name
***********************
the log ended and a new ...lets say startup started
so
i really really could use a script like that....
Reply
#9

Quote:
Originally Posted by MadeMan
pawn Код:
if (strcmp("/tdbarea", cmdtext, true) == 0)
{
    new playername[24];
    GetPlayerName(playerid, playername, sizeof(playername));

    if (strcmp(playername, "[TdB]", false, 5) == 0) // 5 is the length of [TdB]
    {
        SendClientMessage(playerid,red,"Welcome To Your Home Admin");
    }
    else
    {
        SendClientMessage(playerid,red,"Youre Not An Admin, SO PISS OF!");
        Kick(playerid);
    }
    return 1;
}
for what is the false? in line :
pawn Код:
if (strcmp(playername, "[TdB]", false
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)