[Ajuda] Chat prуximo
#5

Quote:
Originally Posted by GGsamp
View Post
Na callback OnPlayerText

if(text[0] == ';'){ChatProximo(playerid, COLOUR_CHATPROX, text[1]);return 0;}

Final do gm ou onde preferir

stock ChatProximo(playerid, color, const string[])
{
new output[128], pNameX[MAX_PLAYER_NAME],outadm[128],rawstring[128];
GetPlayerName(playerid, pNameX, sizeof(pNameX));

format(output, sizeof(output), "%s: (%i): %s", pNameX, playerid, string);
format(rawstring, sizeof(rawstring), "%s",string);

GetPlayerPos(playerid, PosX, PosY, PosZ);

format(outadm, sizeof(outadm), "CHATP >> %s: (%i): %s", pNameX,playerid,string);
for(new i; i < GetMaxPlayers(); i++){if(IsPlayerConnected(i)){
if(CallRemoteFunction("GetPlayerAdminLevel","i",i) >= 4){
if(!IsPlayerInRangeOfPoint(i, 20.0, PosX, PosY, PosZ)){
SendClientMessage(i, 0xFF9900AA, outadm);}}}}

for(new i; i < GetMaxPlayers(); i++){if(IsPlayerConnected(i)){
if(IsPlayerInRangeOfPoint(i, 20.0, PosX, PosY, PosZ)){
SendClientMessage(i, color, output);
PlayerPlaySound(i,1057,0.0,0.0,0.0);}}}
SetPlayerChatBubble(playerid, rawstring, COLOUR_CHATPROX, 20.0, 10000);

return 1;
}
Sistema da Game-Mode do Bloody Vegas
Reply


Messages In This Thread
Chat prуximo - by RayanSanty - 11.03.2019, 22:07
Re: Chat prуximo - by ipsLuan - 11.03.2019, 22:08
Re: Chat prуximo - by ipsLuan - 11.03.2019, 22:36
Re: Chat prуximo - by Malandrin - 11.03.2019, 22:59
Re: Chat prуximo - by zF3lKy3 - 11.03.2019, 23:34

Forum Jump:


Users browsing this thread: 2 Guest(s)