Personal use command
#4

You could check with strcmp if the name matches
pawn Код:
CMD:adwaok(playerid, params[]) {
    new
        name[MAX_PLAYER_NAME]
    ;
    GetPlayerName(playerid, name, sizeof name);
    if(strcmp(name, "abcdef ", false) == 0) {
        return true;
    }
    return false;
}
But this is only secure if the players need to login after connection otherwise everyone just could take his name and use the command
Reply


Messages In This Thread
Personal use command - by N00bKiller - 08.06.2013, 11:21
Re: Personal use command - by stundje - 08.06.2013, 11:25
Re: Personal use command - by N00bKiller - 08.06.2013, 11:39
AW: Personal use command - by Nero_3D - 08.06.2013, 12:56
Re: Personal use command - by Guest123 - 08.06.2013, 14:34
Re: Personal use command - by N00bKiller - 08.06.2013, 18:06
Re: Personal use command - by bensmart469 - 08.06.2013, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)