22.02.2010, 17:19
When I do "/a" then I see Admin MSG
But when I do "/a Hello." Then I see Bad Command blabla.
But If it can? Can anyone make it that you can do "@Hello" and not "/a Hello"
Can anyone help me??
But when I do "/a Hello." Then I see Bad Command blabla.
But If it can? Can anyone make it that you can do "@Hello" and not "/a Hello"
Can anyone help me??
Код:
if (strcmp("/a", cmdtext, true) == 0 && PlayerAdminLevel[playerid] >= 1) // Talk To Other Admins
{
new output[255];
new pname[24];
GetPlayerName(playerid, pname, 24);
strmid(output,cmdtext,7,strlen(cmdtext));
format(string, sizeof(string), "(ADMIN MSG): %s(%d) %s",pname,playerid,output);
printf("%s", string);
for(new i=0;i<MAX_PLAYERS;i++)
{
if(PlayerAdminLevel[i] >= 1) {
format(string, sizeof(string), "(ADMIN MSG): %s(%d) %s",pname,playerid,output);
SendClientMessage(i,COLOR_RED,string);
}
}
return 1;
}

