Spawn Dialog Problem
#3

Dadash ino test kon:
Albate khodam test nakardam.
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch(
dialogid)
    {
        case 
1:
        {
            if(
response)
            {
                switch(
listitem)
                {
                    case 
0// Class 1
                    
{
                        
ShowPlayerDialog(playeridDIALOG_SPAWN_CLASSDIALOG_STYLE_LIST"Shahre Khod Ra Entekhab Namaed""{FFFF00}AazarBayijan\n{FFFF00}Ardebil\n{FFFF00}Oroomie\n{FFFF00}Zanjan""{FF0000}SPAWN""{008000}Khoruj");
                    }
                    case 
2:...
                }
            }
        }
        case 
DIALOG_SPAWN_CLASS:
        {
            if(
response)
            {
                switch(
listitem)
                {
                    case 
0:
                    {
                        
SetSpawnInfo(playerid001958.331343.1215.36269.1526362815000);
                        
SpawnPlayer(playerid);
                        
SetPlayerColor(playeridCOLOR_YELLOW);
                       }
                }
                
            }
        }
    }
    return 
0;

Reply


Messages In This Thread
Spawn Dialog Problem - by Mohaowmad - 08.01.2019, 15:06
Re: Spawn Dialog Problem - by lWiDuAlKl - 08.01.2019, 18:12
Re: Spawn Dialog Problem - by oghabanjb - 09.01.2019, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)