29.03.2017, 09:44
Add this method anywhere in your script:
and then you can use it anywhere you need to retrieve user's name just like:
PHP код:
stock GetName(playerid)
{
new name[64];
GetPlayerName(playerid, name, sizeof(name));
return name;
}
PHP код:
format(string, sizeof(string), "[ADMIN]: You have set %s's admin level to %d.", GetName(playerid), adminLevel);