SA-MP Forums Archive
HELP ME : I Want To Make An CLAN AREA So That It Checks the tag - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP ME : I Want To Make An CLAN AREA So That It Checks the tag (/showthread.php?tid=118500)



HELP ME : I Want To Make An CLAN AREA So That It Checks the tag - Micko9 - 03.01.2010

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



Re: HELP ME : I Want To Make An CLAN AREA So That It Checks the tag - MadeMan - 03.01.2010

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


Re: HELP ME : I Want To Make An CLAN AREA So That It Checks the tag - bajskorv123 - 03.01.2010

Yeah he does


Re: HELP ME : I Want To Make An CLAN AREA So That It Checks the tag - thiaZ_ - 03.01.2010

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


Re: HELP ME : I Want To Make An CLAN AREA So That It Checks the tag - MadeMan - 03.01.2010

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;
}



Re: HELP ME : I Want To Make An CLAN AREA So That It Checks the tag - Micko9 - 04.01.2010

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


Re: HELP ME : I Want To Make An CLAN AREA So That It Checks the tag - Finn - 04.01.2010

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.


Re: HELP ME : I Want To Make An CLAN AREA So That It Checks the tag - Micko9 - 04.01.2010

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....


Re: HELP ME : I Want To Make An CLAN AREA So That It Checks the tag - Micko9 - 05.01.2010

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