13.09.2009, 13:52
Okay guys
At the top I got
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.
At the top I got
Код:
new globalchat[MAX_PLAYERS];
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.