How do I make this command to zcmd?
#1

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) && (== playerid || PlayerInfo[i][AdminLevel] != 0)) SendClientMessage(i,COLOR_YELLOW,string);
return 
1;

how??
Reply
#2

ok.
and how make this command to zcmd

PHP код:
dcmd_J(playerid,params[]) return dcmd_Jail(playerid,params);
dcmd_Jail(playeridparams[])
{
return 
true;

Reply
#3

pawn Код:
CMD:J(playerid, params[]) { return cmd_Jail(playerid, params); }
CMD:Jail(playerid, params[])
{
return true;
}
Reply
#4

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)