23.02.2013, 16:34
I wanted to convert all commands from strcmp to zcmd, some things I know but I do not know if you just change the rows or if I have to appoint new strings:
then change this:
from
to
and these will have to change?
tanks
then change this:
Код:
#include <zcmd>
Код:
if(strcmp("/battleground", cmdtext, true) == 0)
Код:
CMD:battleground(playerid, params[])
Код:
new string[256]; new cmd[256]; new idx; cmd = strtok(cmdtext, idx); new tmp[256]; new giveplayer[MAX_PLAYER_NAME]; new giveplayerid; GetPlayerName(playerid,nome,sizeof(nome)); format(string, sizeof(string), "{54da00}[CMDS-DIRETTO:]{ffffff} %s (%d) ha usato: {ff0000}%s", nome,playerid,cmdtext); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(scmds[i] == 1 && playerid != i) { SendClientMessage(i, COLOR_GREY, string); } } }