13.09.2009, 07:33
Quote:
|
Originally Posted by dice7
That code, as far as I can see, only teleports you to a dm via a menu. To teleport you back after death you need something like
pawn Код:
|
Like:
Код:
IsPlayerInDM[MAX_PLAYERS];
//when player types command to go into dm1
IsPlayerInDM[playerid] = 1;
//OnPlayerSpawn
switch(IsPlayerInDM[playerid])
{
case 1: SetPlayerPos(somewhere in dm1)
case 2: SetPlayerPos(dm2)
///etc
than another one like this but with other variable name?
PlayerInDM[MAX_PLAYERS];
//when player types command to go into dm1
PlayerInDM[playerid] = 1;
//OnPlayerSpawn
switch(PlayerInDM[playerid])
{
case 1: SetPlayerPos(somewhere in dm1)
case 2: SetPlayerPos(dm2)
///etc

