25.06.2011, 11:15
This..?
Add this to the end of your script. Then use it everytime whenever a player's name is required.
So, whenever you format a string, just add GetName(id).. No need for GetPlayerName again & again..
Add this to the end of your script. Then use it everytime whenever a player's name is required.
pawn Код:
stock GetName(playerid)
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername,sizeof(playername));
return playername;
}
pawn Код:
format(String,sizeof(String),"%s made you a admin level %d",GetName(playerid),level);