gamemode to convert strcmp to zcmd
#1

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:
Код:
#include <zcmd>
from
Код:
if(strcmp("/battleground", cmdtext, true) == 0)
to
Код:
CMD:battleground(playerid, params[])
and these will have to change?
Код:
	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);
			}
		}
    }
tanks
Reply


Messages In This Thread
gamemode to convert strcmp to zcmd - by toi - 23.02.2013, 16:34
Re: gamemode to convert strcmp to zcmd - by MMAS09 - 23.02.2013, 17:47
Re: gamemode to convert strcmp to zcmd - by ross8839 - 23.02.2013, 17:50
Re: gamemode to convert strcmp to zcmd - by Scenario - 23.02.2013, 17:55

Forum Jump:


Users browsing this thread: 1 Guest(s)