double slash command
#1

How do I make a double slash command with ZCMD?

PHP код:
CMD:/(playeridparams[])
{
                if(!
user.admin[playerid]) return SendClientMessage(playerid0xFF0000"Si komanda tik adminams");
                new 
txt[128];
                if(
sscanf(params"s[128]" txt)) SendClientMessage(playerid0xFF0000"* Naudojimas: // [zinute]");
                new 
zin[256],vardas[MAX_PLAYER_NAME];
                
GetPlayerName(playerid,vardas,MAX_PLAYER_NAME);
                
format(zin,sizeof(zin),"%s: %s",vardas,txt);
                for(new 
i=0;i<MAX_PLAYERS;i++)
                {
                    if(
IsPlayerConnected(i))
                    {
                        if(
user.admin[playerid] || user.meras[playerid])
                        {
                            
SendClientMessage(i,0xFF4500AA,zin);
                        }
                    }
                }
                return 
1;

I want it to be like this , but this kind of command gives errors when compiling because of the CMD:/
Reply


Messages In This Thread
double slash command - by Kevinas100 - 01.02.2019, 18:33
Re: double slash command - by DarkBr - 01.02.2019, 18:37
Re: double slash command - by TokicMajstor - 02.02.2019, 10:49
Re: double slash command - by SymonClash - 02.02.2019, 11:09

Forum Jump:


Users browsing this thread: 2 Guest(s)