10.06.2013, 05:41
this one we tried to make but when we do the command and enter the text nothing comes up at all not as a client message or gametext but also doesnt say server unknown command
if(strcmp(cmd, "/announce", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xA0A0A0FF, "Use /announce [TEXT].");
return 1;
}
new text,announce[40];
text = strval(tmp);
format(announce,sizeof(announce), "%s", text);
if(PlayerAdmin[playerid][Admin] > 1)
GameTextForAll(announce, 5000, 6);
return 1;
}
if(strcmp(cmd, "/announce", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xA0A0A0FF, "Use /announce [TEXT].");
return 1;
}
new text,announce[40];
text = strval(tmp);
format(announce,sizeof(announce), "%s", text);
if(PlayerAdmin[playerid][Admin] > 1)
GameTextForAll(announce, 5000, 6);
return 1;
}