Need help - Globalchat.
#1

Okay guys

At the top I got

Код:
new globalchat[MAX_PLAYERS];
Then, as admin commands, these two:


if(strcmp(cmd, "/enablegc", true) == 0)
{
if (AccountInfo[playerid][AdminLevel] > 1 || IsPlayerAdmin(playerid))
{
globalchat[playerid] = 1;
}
else SendClientMessage(playerid, RED, "Youґre not the needed admin level.");
return 1;
}

if(strcmp(cmd, "/disablegc", true) == 0)
{
if (AccountInfo[playerid][AdminLevel] > 1 || IsPlayerAdmin(playerid))
{
globalchat[playerid] = 0;
}
else SendClientMessage(playerid, RED, "Youґre not the needed admin level.");
return 1;
}

How can I make a command like /g [text] now? Its meant to chat global, but only when admins enabled the global chat.
Reply


Messages In This Thread
Need help - Globalchat. - by Striker_Moe - 13.09.2009, 13:52
Re: Need help - Globalchat. - by Backwardsman97 - 13.09.2009, 14:17
Re: Need help - Globalchat. - by Striker_Moe - 13.09.2009, 14:43
Re: Need help - Globalchat. - by Nero_3D - 13.09.2009, 14:49

Forum Jump:


Users browsing this thread: 3 Guest(s)