25.06.2012, 10:14
(
Последний раз редактировалось .Wicked; 25.06.2012 в 10:56.
)
Quote:
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;
}