public OnPlayerText(playerid, text[])
{
if(PlayerInfo[playerid][pAdmin] == 3)
{
new pName[MAX_PLAYER_NAME], String[128], Prefix[] = "{FF3333}[Owner]";
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "%s{AFAFAF}%s: %s", Prefix, pName, text);
SendClientMessageToAll(-1,String);
}
if(PlayerInfo[playerid][pAdmin] == 2)
{
new pName[MAX_PLAYER_NAME], String[128], Prefix[] = "{33AA33}[Head-Admin]";
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "%s{AFAFAF}%s: %s", Prefix, pName, text);
SendClientMessageToAll(-1,String);
}
if(PlayerInfo[playerid][pAdmin] == 1)
{
new pName[MAX_PLAYER_NAME], String[128], Prefix[] = "{FF9900}[Moderator]";
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "%s{AFAFAF}%s: %s", Prefix, pName, text);
SendClientMessageToAll(-1,String);
}
if(PlayerInfo[playerid][pAdmin] == 0)
{
new pName[MAX_PLAYER_NAME], String[128], Prefix[] = "{E100E1}[Member]";
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "%s{AFAFAF}%s: %s", Prefix, pName, text);
SendClientMessageToAll(-1,String);
}
return 1;
}
public OnPlayerText(playerid, text[])
{
switch(PlayerInfo[playerid][pAdmin])
{
case 3:
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FF3333}[Owner]{AFAFAF}%s: %s", pName, text[0]);
SendClientMessageToAll(-1,String);
return 0;
}
case 2:
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FF3333}[Head-Admin]{AFAFAF}%s: %s", pName, text[0]);
SendClientMessageToAll(-1,String);
return 0;
}
case 1:
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FF3333}[Moderator]{AFAFAF}%s: %s", pName, text[0]);
SendClientMessageToAll(-1,String);
return 0;
}
case 0:
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FF3333}[Member]{AFAFAF}%s: %s", pName, text[0]);
SendClientMessageToAll(-1,String);
return 0;
}
}
return 1;
}
pawn Код:
|