Spawn with dialogs problem [rep]
#4

Okayy I have this:
pawn Код:
case DIALOG_SOLDIER:
        {
            if( response )
             if(gTeam[playerid] == TEAM_USA)
             {
                gPlayerClass[playerid] = SOLDIER_CLASS;
                SpawnPlayer(playerid, -251.3996,2602.4814,62.8582);
                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;
            }
public OnPlayerRequestClass(playerid, classid)
{
    SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0); // Without this you'll be kicked when you spawn. Set it to wherever you want.
   
    return 1;
}
the spawning is working, but the coords are not working. I spawn every time on the same place. What to do?
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)