One Word Admin Names
#8

Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
pawn Код:
//if(!IsPlayerAdmin(playerid)) <-- add this
if(strcmp(playername, "Dan", true) == 0)
{
     return 0;//return 1; put here
}
else
{
      SendClientMessage(playerid, COLOR_YELLOW, "Sorry, that name is too short, please change it.");
      SendClientMessage(playerid, COLOR_YELLOW, "Please use the Firstname_Lastname format.");
      SendClientMessage(playerid, COLOR_YELLOW, "Name Examples: Jhonny_John, Dan_Wilson, Sarah_Raven");
      Kick(playerid);
      return 1;
}
Thank you so much,

I changed
pawn Код:
if(!IsPlayerAdmin(playerid))
into
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
and it works perfectly. + Rep.
Reply


Messages In This Thread
One Word Admin Names - by Melon - 31.07.2012, 22:51
Re: One Word Admin Names - by Majed - 31.07.2012, 23:42
Re: One Word Admin Names - by Melon - 31.07.2012, 23:46
Re: One Word Admin Names - by gnoomen2 - 01.08.2012, 00:24
Re: One Word Admin Names - by Melon - 01.08.2012, 00:56
Re: One Word Admin Names - by gnoomen2 - 01.08.2012, 18:10
Re: One Word Admin Names - by Roko_foko - 01.08.2012, 18:20
Re: One Word Admin Names - by Melon - 01.08.2012, 21:29

Forum Jump:


Users browsing this thread: 9 Guest(s)