17.12.2012, 19:10
Код:
new name[MAX_PLAYER_NAME], string[55]; GetPlayerName(playerid, name,sizeof(name)); format(string,sizeof(string), "[V.I.P]%s",name); SetPlayerName(playerid, string);
new name[MAX_PLAYER_NAME], string[55]; GetPlayerName(playerid, name,sizeof(name)); format(string,sizeof(string), "[V.I.P]%s",name); SetPlayerName(playerid, string);
public OnPlayerText(playerid, text[])
{
new name[MAX_PLAYER_NAME], string[55];
GetPlayerName(playerid, name,sizeof(name));
format(string,sizeof(string), "[V.I.P]%s: %s",name,text);
SendPlayerMessageToAll(playerid, string);
return 0;
}
stock GetPlayerNameEx(playerid)
{
new Name[MAX_PLAYER_NAME];
new GetPlayerName(playerid,Name,sizeof(Name));
if(IsPlayerVIP[playerid]==1)//change to your VIP variable
{
format(Name,sizeof(Name), "[V.I.P]%s",Name);
return Name;
}else return Name;
}
new name[MAX_PLAYER_NAME], string[55]; GetPlayerName(playerid, name,sizeof(name)); format(string,sizeof(string), "[V.I.P]%s",name); SetPlayerName(playerid, string); |
you can make an extra GetPlayerNameEx so you can retrieve the players name with the tag.
pawn Код:
|