27.08.2009, 08:27
Giving player the tag...
Untested. Please let me know if it doesnt work.
Usage:
if the players name is Cake that would turn the players name into [LOL]Cake.
I once made a GetPlayerTag function and ill see if i can find it for you.
pawn Код:
stock GivePlayerTag ( playerid , tag [ ] )
{
new name [ MAX_PLAYER_NAME ];
new newname [ 30 ];
GetPlayerName ( playerid , name , MAX_PLAYER_NAME );
format ( newname , sizeof ( newname ) , "[%s]%s" , tag , name );
SetPlayerName ( playerid , string );
return 1;
}
Usage:
pawn Код:
GivePlayerTag ( playerid , "LOL" );
I once made a GetPlayerTag function and ill see if i can find it for you.