IS this possible??
#1

Is it possible to make a command that only the nickname or the name can use it

somethink like:
if(IsPlayerAdmin(playerid))

but this is for admins , i want only for name something like :

if(PlayerName(Amel_Patomaxx)) // this is not true ofcourse

I do not know how better to explain..
Reply
#2

Ofc Example,
pawn Код:
public OnPlayerConnect(playerid)
{
    new
        pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
   
    if(!strcmp(pName, "iggy"))//if players name is iggy
    {
        //players name is iggy
        SetPlayerHealth(playerid, 999999);
    }
    else//playersname isn't iggy
    {
    }
    return 1;
}
Reply
#3

OU its working thanks man...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)