Spawn with dialogs problem [rep]
#1

I've made a team & class selection in dialogs, now I will give the player spawn locations. I used this code:
pawn Код:
case DIALOG_SOLDIER:
        {
            if( response )
             if(gTeam[playerid] == TEAM_USA)
             {
                gPlayerClass[playerid] = SOLDIER_CLASS;
                AddPlayerClass(0,-251.3996,2602.4814,62.8582,6.5801,0,0,0,0,0,0);
                GivePlayerWeapon(playerid, 4, 1);//knife
                GivePlayerWeapon(playerid, 16, 2);//grenades
                GivePlayerWeapon(playerid, 24, 15);//desert eagle
                GivePlayerWeapon(playerid, 31, 60);//m4
                GivePlayerWeapon(playerid, 26, 15);//sawn off shotgun
                GivePlayerWeapon(playerid, 29, 30);//mp5
                SetPlayerHealth(playerid, 75);
                return 1;
            }
            else if(gTeam[playerid] == TEAM_EURO)
            {
                gPlayerClass[playerid] = SOLDIER_CLASS;
                AddPlayerClass(0,-204.5513,1090.3835,19.7422,314.8796,0,0,0,0,0,0);
                GivePlayerWeapon(playerid, 4, 1);//knife
                GivePlayerWeapon(playerid, 16, 2);//grenades
                GivePlayerWeapon(playerid, 24, 15);//desert eagle
                GivePlayerWeapon(playerid, 31, 60);//m4
                GivePlayerWeapon(playerid, 26, 15);//sawn off shotgun
                GivePlayerWeapon(playerid, 29, 30);//mp5
                SetPlayerHealth(playerid, 75);
                return 1;
            }
I'll want to spawn with the ''Play'' button in my dialog. How to do that?
Reply


Messages In This Thread
Spawn with dialogs problem [rep] - by smokeweed - 02.02.2012, 16:23
Re: Spawn with dialogs problem [rep] - by kubz777 - 02.02.2012, 16:30
Re: Spawn with dialogs problem [rep] - by thimo - 02.02.2012, 16:33
Re: Spawn with dialogs problem [rep] - by smokeweed - 03.02.2012, 11:57

Forum Jump:


Users browsing this thread: 2 Guest(s)