23.12.2013, 16:56
THIS IS MY IRC CMD
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
Help me to fix it
Thank you SAMP
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 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! |
Thank you SAMP