HELP ME : I Want To Make An CLAN AREA So That It Checks the tag
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)