15.05.2012, 13:02
Hi every one
i tried to make if player talk or text anything and he is VIP it Show like That [Gold VIP][D]ry[D]esert:Whats Problem in that ?
i tried to make if player talk or text anything and he is VIP it Show like That [Gold VIP][D]ry[D]esert:Whats Problem in that ?
pawn Код:
public OnPlayerText(playerid, text[])
{
if(AccountInfo[playerid][VIPlevel] == 1)
{
new str[128];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(str, sizeof(str), "{FFFFFF}["Bronze"Bronze "PURPLE"VIP]"Bronze" %s: %s", playername, text);
SendPlayerMessageToAll(playerid, str);
return 0;
}
if(AccountInfo[playerid][VIPlevel] == 2)
{
new str[128];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(str, sizeof(str), "{FFFFFF}["Silver"Silver "PURPLE"VIP]"Silver" %s: %s", playername, text);
SendPlayerMessageToAll(playerid, str);
return 0;
}
if(AccountInfo[playerid][VIPlevel] == 3)
{
new str[128];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(str, sizeof(str), "{FFFFFF}["Gold"Gold "PURPLE"VIP]"Gold" %s: %s", playername, text);
SendPlayerMessageToAll(playerid, str);
return 0;
}
}