Getting coords
#7

Quote:
Originally Posted by Anthonyx3'
Посмотреть сообщение
Alright i tried the whole setting off position onplayerspawn, but since player doesnt have coords saved to his file after registration, it sends em to 0.0. Give me an example on what you have done? Or should i just set the regi x,y,z to spawn spot?
Make a global variable like SpawnType[MAX_PLAYERS];

Then you can set it to 0 underneath OnPlayerDeath() 1 on login and 2 on register. Then under OnPlayerSpawn()
pawn Код:
switch(SpawnType[playerid])
{
     case 0:
     {
          // When the player dies
     }
     case 1:
     {
          // When the player login
     }
     case 2:
     {
          // When the player registers
     }
}
Reply


Messages In This Thread
Getting coords - by Anthonyx3' - 30.12.2010, 02:59
Re: Getting coords - by _rAped - 30.12.2010, 03:02
Re: Getting coords - by Anthonyx3' - 30.12.2010, 03:05
Re: Getting coords - by _rAped - 30.12.2010, 03:08
Re: Getting coords - by Anthonyx3' - 30.12.2010, 03:10
Re: Getting coords - by Anthonyx3' - 30.12.2010, 03:40
Re: Getting coords - by _rAped - 30.12.2010, 03:48
Re: Getting coords - by Anthonyx3' - 30.12.2010, 04:02
Re: Getting coords - by Anthonyx3' - 30.12.2010, 04:12
Re: Getting coords - by _rAped - 30.12.2010, 04:14

Forum Jump:


Users browsing this thread: 2 Guest(s)