[FilterScript] a little Dialog Commandlist
#1

hi, the name say it dialog Commandlist

this is my first filterscript

pictures:



Commands
Use /commands for the command list
Afk
Back
Kill
Help
Admins
Switchclass
Website
Rules
Music
Ciggy
Handsup
Cell on
Cell off
Piss
Beer
Wine
Sprunk
Dance 1
Dance 2
Dance 3
Dance 4

it's not mutch but i dont know more Commands
Download and open the filterscript and change by Help, Admins, And website, and Rules your own Help Admins And Website And Rules

Download:

PWN
AMX

PASTEBIN


ps; if you found a spelling fail sorry but i cant good english
Greetz Dutchmen0031
Reply
#2

Good job
Reply
#3

Great job
Reply
#4

You should remove OnGameModeInit and OnGameModeExit

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/commands", true)==0)
    ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Commands","nHere a list with commmands\nAFK\nBack (from afk)\nkill (myself)\nhelp\nAdmins\nSwitchclass\nWebsite\nmusic", "Select", "Close");
}
That wont compile. You will need brackets ect.
Reply
#5

Quote:
Originally Posted by Hal
View Post
You should remove OnGameModeInit and OnGameModeExit

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/commands", true)==0)
    ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Commands","nHere a list with commmands\nAFK\nBack (from afk)\nkill (myself)\nhelp\nAdmins\nSwitchclass\nWebsite\nmusic", "Select", "Close");
}
That wont compile. You will need brackets ect.
Try before you post, maybe? It does compile, and yes, remove OGMI and OGME
Reply
#6

Quote:
Originally Posted by Hal
View Post
You should remove OnGameModeInit and OnGameModeExit

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/commands", true)==0)
    ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Commands","nHere a list with commmands\nAFK\nBack (from afk)\nkill (myself)\nhelp\nAdmins\nSwitchclass\nWebsite\nmusic", "Select", "Close");
}
That wont compile. You will need brackets ect.
ok so when he fixes it...is it customizable like can i change the command to somthing like /rules and put rules there instead?
Reply
#7

Quote:
Originally Posted by sherlock
View Post
ok so when he fixes it...is it customizable like can i change the command to somthing like /rules and put rules there instead?
Well its just list items, so like a command you would put your code inside of it. You can change all the text easily enough.

@Lethal Was working on it, but couldn't find dudb(blah).

But its simple enough to teach someone how to use a dialog
Reply
#8

tanks all i have delete OnGameModeInit and OnGameModeExit

ps: if you know more commands say it and i make more commands.
Reply
#9

idk how to change it XD can you pm me or add a simple one using that box thing but with /rules and "put rule 1 here" so all i have to do is type rules in?? or i will try and post errors

if i use the dudb include i looked at it and its some sort of account system. If i add this to includes will it affect the register system i already have?
Reply
#10

Quote:
Originally Posted by Hal
View Post
You should remove OnGameModeInit and OnGameModeExit

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/commands", true)==0)
    ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Commands","nHere a list with commmands\nAFK\nBack (from afk)\nkill (myself)\nhelp\nAdmins\nSwitchclass\nWebsite\nmusic", "Select", "Close");
}
That wont compile. You will need brackets ect.
Use ZCMD:
pawn Code:
CMD:commands(playerid,params[])
{
ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Commands","nHere a list with commmands\nAFK\nBack(from afk)\nkill (myself)\nhelp\nAdmins\nSwitchclass\nWebsite\nmusic", "Select", "Close");
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)