Name restrictions
#2

Try using this function: GetPlayerName(playerid, name, sizeof(name));


So somthing like this:

pawn Код:
if(GetPlayerName(playerid, name, sizeof(name) != "David_Johnson" || "Melinda_Washington")//You might need to format these names; I haven't tested this code yet...
{
    GameTextForPlayer(playerid, "~r~Access Denied!", 3500, 4);
    return 1;
}
Reply


Messages In This Thread
lock and bin it please. - by Siv - 07.05.2013, 08:49
Re: Name restrictions - by jakejohnsonusa - 07.05.2013, 11:22
Re: Name restrictions - by RajatPawar - 07.05.2013, 11:33

Forum Jump:


Users browsing this thread: 2 Guest(s)