SA-MP Forums Archive
IRC SCRIPTING COMMAND HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IRC SCRIPTING COMMAND HELP (/showthread.php?tid=482962)



IRC SCRIPTING COMMAND HELP - Stgnature - 23.12.2013

THIS IS MY IRC CMD

Quote:

IRCCMD:isban(botid, channel[], user[], host[], params[])
{
if (IRC_IsVoice(botid, channel, user))
{
new bnz[128];
new nameban = dUserINT(params).("Nameban");
if(!strlen(params))
{
format(bnz, sizeof(bnz), "(Error)Invalid params! [!isban [PlayerName]]");
IRC_Say(botid, channel, bnz);
return 1;
}
if(!udb_Exists(params))
{
format(bnz, sizeof(bnz), "(INFO)Player %s was not found in the database!", params);
IRC_Say(botid, channel, bnz);
return 1;
}
if(nameban == 1)
{
format(bnz, sizeof(bnz), "(INFO)Player %s was found in the database!", params);
IRC_Say(botid, channel, bnz);
return 1;
}
if(nameban == 0)
{
format(bnz, sizeof(bnz), "(INFO)Player %s was not found in the database!", params);
IRC_Say(botid, channel, bnz);
return 1;
}
}
return 1;
}

I want to Create To CHECK BAN RECORDS Like if u ban some one from in ban /adban (id) (reason) or IRC !ban (id) (reason)
i create this !isban to Want to know that the player is Banned From Whom, Reason ,DATE when i banned my self and type !isban (NAME) it said

Quote:

<~Nonamee> !isban Noname
<&CNR1> (INFO)Player Noname was not found in the database!

Help me to fix it
Thank you SAMP


Re: IRC SCRIPTING COMMAND HELP - Stgnature - 23.12.2013

DUMP i need to fix this