01.02.2019, 18:33
How do I make a double slash command with ZCMD?
I want it to be like this , but this kind of command gives errors when compiling because of the CMD:/
PHP код:
CMD:/(playerid, params[])
{
if(!user.admin[playerid]) return SendClientMessage(playerid, 0xFF0000, "Si komanda tik adminams");
new txt[128];
if(sscanf(params, "s[128]" txt)) SendClientMessage(playerid, 0xFF0000, "* 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;
}