SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 26/05/2020, 09:30 AM   #1
Huge Clucker
Join Date: May 2016
Posts: 251
Reputation: 1
Question can i do this? (||)

pawn Code:
if(channel == g_Discord_Admin_CMD)
        if(!strcmp(command, "!mycommand", true)) {
            if(role == (g_Role_Level_1 || g_Role_Level_2 || g_Role_Level_3 || g_Role_Level_4)) { //<<<<<<<<<<<<<<<<<<<<<
                //My action
            } else return DCC_SendChannelMessage(g_Discord_Admin_CMD, "```ERROR: You're not an admin!```");
Filbert is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT. The time now is 12:40 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.