16.08.2014, 11:22
Is it possible to create a command using ZCMD, and it is: "// <text>"?
Whenever I try creating it, it get a ton of errors.
Here's my script:
Whenever I try creating it, it get a ton of errors.
Here's my script:
Код:
COMMAND:/(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if(!isnull(params))
{
new string[128],vardas[MAX_PLAYER_NAME];
GetPlayerName(playerid,vardas,sizeof(vardas));
format(string,sizeof(string),"%s: %s",vardas,params);
for (new i = 0; i != MAX_PLAYERS; ++i)
{
if(PlayerInfo[i][pAdmin] >= 2) SendClientMessage(i,COLOR_YELLOW, string);
}
}
else return SendClientMessage(playerid, COLOR_CORAL, "Naudojimas /ac <tekstas>");
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Tokios komandos nлra. Norint suюinoti daugiau, raрykite: {00FF00}/pagalba");
}
return 1;
}

