05.07.2011, 12:23
Quote:
most funnctions can be made out of definnes, improves speed of script. jjust a hint
![]() other than that, quite useful |
pawn Код:
stock NewName(playerid, const name[])
{
new str[MAX_PLAYER_NAME];
format(str, MAX_PLAYER_NAME, "x_%03d_", playerid);
SetPlayerName(playerid, str); //Eg. if you have the name 'kwarde' and you want 'Kwarde', normal SetPlayerName won't work. This'll fix it
SetPlayerName(playerid, name);
GetPlayerName(playerid, playerName[playerid], MAX_PLAYER_NAME);
return 1;
}
#define SetPlayerName NewName
stock PlayerName(playerid)
return playerName[playerid];
#define Name PlayerName