20.09.2015, 09:31
Quote:
OnPlayerText:-
PHP код:
|
PHP код:
new
tmpstr[125],
pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(YourAdminCheckHere == 1) // Change to your admin check
{
format(tmpstr,sizeof(tmpstr),"(ADMIN) %s: %s",pName,text);
SendClientMessageToAll(-1, tmpstr); // << Change -1 to your color.
return 0;
}
else if(YourVIPCheckHere == 1) // Change to your vip check
{
format(tmpstr,sizeof(tmpstr),"(VIP) %s: %s",pName,text);
SendClientMessageToAll(-1, tmpstr); // << Change -1 to your color.
return 0;
}