09.11.2018, 09:48
(
Last edited by ata001; 09/11/2018 at 10:03 AM.
Reason: adding something
)
Hello
I'd made some classes (not teams) like soldier,... that has a dialog:
that I've done like this:
And I'd made a command for switching between class while playing (not onplayerspawn):
I don't have any problem with dialogs and their action.
BUT
When i use /sc command and switch my class, it spawns me.
SO
The OnPlayerSpawn function comes up:
And request me to choose my class again.
I just know that I have to change the place of:
To not To Be In OnPlayerSpawn function.
Can You Help Me With My Problem?
What Can I Do For This (To Not To Show The Dialog 2 Times When I Use /Sc Command And Respawns Me)
I'd made some classes (not teams) like soldier,... that has a dialog:
Code:
ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Entekhabe Class", "Sarbaz\nSniper\nMohandes\nHealer\nJasoos\nSartip\nKhalaban\nJangavar\nVIP+Admin", "Entekhab", "");
Code:
public OnPlayerSpawn(playerid) { ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Entekhabe Class", "Sarbaz\nSniper\nMohandes\nHealer\nJasoos\nSartip\nKhalaban\nJangavar\nVIP+Admin", "Entekhab", ""); return 1; }
Code:
CMD:sc(playerid,params[]) { ShowPlayerDialog(playerid, DIALOG_CLASS2, DIALOG_STYLE_LIST, "Entekhabe Class", "Sarbaz\nSniper\nMohandes\nHealer\nJasoos\nSartip\nKhalaban\nJangavar\nVIP+Admin", "Entekhab", ""); return 1; }
BUT
When i use /sc command and switch my class, it spawns me.
SO
The OnPlayerSpawn function comes up:
Code:
public OnPlayerSpawn(playerid) { ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Entekhabe Class", "Sarbaz\nSniper\nMohandes\nHealer\nJasoos\nSartip\nKhalaban\nJangavar\nVIP+Admin", "Entekhab", ""); return 1; }
I just know that I have to change the place of:
Code:
howPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Entekhabe Class", "Sarbaz\nSniper\nMohandes\nHealer\nJasoos\nSartip\nKhalaban\nJangavar\nVIP+Admin", "Entekhab", "");
Can You Help Me With My Problem?
What Can I Do For This (To Not To Show The Dialog 2 Times When I Use /Sc Command And Respawns Me)