20.09.2015, 06:48
i want a tag with admins and vip,s ,when they talk in main chat.. +1 for helper
see attachment u will understand
see attachment u will understand
new
tmpstr[125],
pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
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;
}
else 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;
}
OnPlayerText:-
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;
}