/admins cmd? +1 REP! - 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)
+--- Thread: /admins cmd? +1 REP! (
/showthread.php?tid=429581)
/admins cmd? +1 REP! -
Lynet - 10.04.2013
Hello people, im using zCmd, and how could I make an command like this?
Just give me an simple example and ill replace with my playerinfo, enums etc
Re: /admins cmd? +1 REP! -
iJumbo - 10.04.2013
Admins in client messages? or in a dialog?
anyway something like that
pawn Код:
YourCommandProcessor.admins(playerid,params[])
{
new adminCount,string[128];
foreach(new i : Player) {
if(plaervar[i][adminlevel] > 0) {
format(string,sizeof(string),"Admin %s level %d",yourGetNameFunction(i),plaervar[i][adminlevel]);
SendClientMessage(playerid,-1,string);
adminCount++;
}
}
if(adminCount == 0) SendClientMessage(playerid,-1,"There is no admin online!");
return 1;
}
Re: /admins cmd? +1 REP! -
Faisal_khan - 10.04.2013
Why don't go through some tutorials on ZCMD?
[Tutorial] ZCMD - Commands collection [PART 1]