kako dodati razlog onaj zasto je banan netko u ovu commandu ?
dcmd_ban(playerid, params[])
{
new
id,
reason[64];
if (sscanf(params, "uz", id, reason)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/ban <playerid/partname> <reason (optional)>\"");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
else
{
BanEx(id, reason);
format(reason, sizeof (reason), "You have been banned%s%s.", reason[0] ? (" for: ") : (""), reason);
SendClientMessage(id, 0xFF0000AA, reason);
SendClientMessage(playerid, 0x00FF00AA, "Player banned");
}
return 1;
Ne radi mi ova commanda /ban
Commandu sam preuzeo sa http://wiki.sa-mp.com/wiki/Fast_Commands
Imam i kick commandu,ali nema ubaceno razlog