[Tutorial] Map Change System
#10

Quote:
Originally Posted by vassilis
Посмотреть сообщение
hey i follow the way and made it but its not setting player position to the next map why?
pawn Код:
public OnPlayerSpawn(playerid)                    // OnPlayerSpawn Callback
{
    switch ( MapChange  ) {                       // you must have a case for the mapchange to get the list going
        case 0:                                   // MapChange1 this is the part for MapChange = 0; Which basically starts of the first MapChangein the list
        {
            SetPlayerPos(playerid, X,Y,Z);        // You have to set the cordinates where the player should spawn on the next map.
            SetPlayerFacingAngle(playerid,0.0);   // Facing Angle of the first map
        }
        case 1:                                   // MapChange2 same settings on top
        {
            SetPlayerPos(playerid, X,Y,Z); // You have to set the cordinates where the player should spawn on the next map.
            SetPlayerFacingAngle(playerid,0.0);
        }
        case 2:                                   // blah blah next MapChangestuff here
        {

        }
    }
    return 1;
}
Reply


Messages In This Thread
Map Change System - by Kitten - 16.07.2011, 04:57
Re: Map Change System - by AgentZero - 16.07.2011, 04:58
Re: Map Change System - by System64 - 16.07.2011, 06:39
Re: Map Change System - by Lorenc_ - 16.07.2011, 07:16
Re: Map Change System - by vassilis - 17.01.2012, 10:21
Respuesta: Map Change System - by [Nikk] - 19.01.2012, 10:23
Re: Map Change System - by Ballu Miaa - 04.02.2012, 13:39
Re: Map Change System - by Jochemd - 07.05.2012, 17:50
Re: Map Change System - by Rudy_ - 19.06.2012, 14:00
Re: Map Change System - by .Wicked - 25.06.2012, 10:14
Re: Map Change System - by BlackForBoy - 11.08.2012, 08:04
Re: Map Change System - by Cocolini - 09.10.2013, 21:40
Respuesta: Map Change System - by DanDRT - 09.10.2013, 23:18
Respuesta: Map Change System - by cleme - 01.12.2013, 20:43
Re: Map Change System - by ReD_DeVi - 01.12.2013, 21:25
Re: Map Change System - by Voxel - 26.12.2013, 11:38
Re: Map Change System - by ThickShake1994 - 26.12.2013, 12:18
Re: Map Change System - by LeGGGeNNdA - 26.12.2013, 14:00
Re: Map Change System - by J4mmyHD - 26.12.2013, 16:29
Re: Map Change System - by satafinix - 16.05.2014, 10:58
Re: Map Change System - by Rissam - 11.01.2015, 11:47
Re: Map Change System - by Rissam - 15.01.2015, 13:28
Re: Map Change System - by TheRaGeLord - 15.01.2015, 14:00
Re: Map Change System - by FeniX70 - 30.03.2015, 02:41
Re: Map Change System - by ivndosos - 27.03.2018, 12:37

Forum Jump:


Users browsing this thread: 2 Guest(s)