How do I make this command to zcmd? - 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: How do I make this command to zcmd? (
/showthread.php?tid=271266)
How do I make this command to zcmd? -
NeyMar96 - 23.07.2011
PHP код:
if(cmdtext[1] == '/')
{
if(PlayerInfo[playerid][AdminLevel] < 1) return 0;
new string[128], ac[128];
strmid(ac,cmdtext,2,strlen(cmdtext));
format(string,128," [Admin - Chat] %s(%d): %s",GetName(playerid),playerid,ac);
for(new i=0;i<MAX_PLAYERS;i++) if(IsPlayerConnected(i) && (i == playerid || PlayerInfo[i][AdminLevel] != 0)) SendClientMessage(i,COLOR_YELLOW,string);
return 1;
}
how??
Re: How do I make this command to zcmd? -
NeyMar96 - 23.07.2011
ok.
and how make this command to zcmd
PHP код:
dcmd_J(playerid,params[]) return dcmd_Jail(playerid,params);
dcmd_Jail(playerid, params[])
{
return true;
}
Re: How do I make this command to zcmd? -
iPLEOMAX - 23.07.2011
pawn Код:
CMD:J(playerid, params[]) { return cmd_Jail(playerid, params); }
CMD:Jail(playerid, params[])
{
return true;
}
Re: How do I make this command to zcmd? -
NeyMar96 - 24.07.2011
Quote:
Originally Posted by iPLEOMAX
pawn Код:
CMD:J(playerid, params[]) { return cmd_Jail(playerid, params); } CMD:Jail(playerid, params[]) { return true; }
|
And how to YCMD?