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!