Command Problem.
#5

Add this method anywhere in your script:

PHP код:
stock GetName(playerid)
{
    new 
name[64];
    
GetPlayerName(playeridnamesizeof(name));
    return 
name;

and then you can use it anywhere you need to retrieve user's name just like:

PHP код:
format(stringsizeof(string), "[ADMIN]: You have set %s's admin level to %d."GetName(playerid), adminLevel); 
Reply


Messages In This Thread
Command Problem. - by MyUndiesSmell - 29.03.2017, 03:04
Re: Command Problem. - by Banditul18 - 29.03.2017, 03:34
Re: Command Problem. - by MyUndiesSmell - 29.03.2017, 03:38
Re: Command Problem. - by Feynman - 29.03.2017, 07:31
Re: Command Problem. - by Juvanii - 29.03.2017, 09:44
Re: Command Problem. - by Banditul18 - 29.03.2017, 10:38

Forum Jump:


Users browsing this thread: 1 Guest(s)