Help with Admin Commands please. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with Admin Commands please. (
/showthread.php?tid=129541)
Help with Admin Commands please. -
ownboy - 22.02.2010
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??
Код:
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;
}
Re: Help with Admin Commands please. -
ownboy - 22.02.2010
Ok Allready Done. My Friend Helped me