Spawn
#7

Quote:
Originally Posted by sobolanux
Посмотреть сообщение
Try this:

under the 'main()' (not inside it!) add this:

Код:
enum FirstSpawn
{
	pIsFirstSpawn
};
new pSpawnInfo[MAX_PLAYERS][FirstSpawn];
now inside the OnPlayerConnect callback add this:

Код:
         pSpawnInfo[playerid][pIsFirstSpawn] = 0;
also add this inside OnPlayerSpawn callback this:

Код:
	if(!pSpawnInfo[playerid][pIsFirstSpawn])
	{
	    GameTextForPlayer(playerid, SPAWN_GAMETEXT, SPAWN_TEXTTIME, SPAWN_TEXTSTYLE);
	    pSpawnInfo[playerid][pIsFirstSpawn] = 1;
	}
and under the OnPlayerDisconnect this:

Код:
         pSpawnInfo[playerid][pIsFirstSpawn] = 0;
Also, at the top of the script add these defines and edit them with your informations:

Код:
#define SPAWN_GAMETEXT "Spawn text"
#define SPAWN_TEXTTIME 5000
#define SPAWN_TEXTSTYLE 1
I hope this works. Haven`t tested it but if there are any errors reply!
Ooh i got it thanks dude!
Reply


Messages In This Thread
Spawn - by Admigo - 24.04.2011, 09:16
Re: Spawn - by xir - 24.04.2011, 09:26
Re: Spawn - by Admigo - 24.04.2011, 09:30
Re: Spawn - by Ash. - 24.04.2011, 09:33
Re: Spawn - by sobolanux - 24.04.2011, 09:43
Re: Spawn - by Admigo - 24.04.2011, 13:02
Re: Spawn - by Admigo - 24.04.2011, 13:09
Re: Spawn - by ••• ĤБĶБM ••• - 24.04.2011, 13:12
Re: Spawn - by sobolanux - 24.04.2011, 13:56

Forum Jump:


Users browsing this thread: 3 Guest(s)