Tag System - Help Please
#1

Can some one help me to make this:

If a normal player joins with [H] Then he get kicked.

If a admin player joins with [H] Then no kick.
Reply
#2

You would have to load the player information first, either through your login system or just load right away. Then use this to check:

pawn Код:
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
if(strfind(Name, "[H]", false) != -1) //[H] is found in name
{
    if(!IsPlayerAdmin(playerid)) //replace with your admin check
    {
          Kick(playerid);
     }
     else return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)