24.04.2011, 09:43
Try this:
under the 'main()' (not inside it!) add this:
now inside the OnPlayerConnect callback add this:
also add this inside OnPlayerSpawn callback this:
and under the OnPlayerDisconnect this:
Also, at the top of the script add these defines and edit them with your informations:
I hope this works. Haven`t tested it but if there are any errors reply!
under the 'main()' (not inside it!) add this:
Код:
enum FirstSpawn { pIsFirstSpawn }; new pSpawnInfo[MAX_PLAYERS][FirstSpawn];
Код:
pSpawnInfo[playerid][pIsFirstSpawn] = 0;
Код:
if(!pSpawnInfo[playerid][pIsFirstSpawn]) { GameTextForPlayer(playerid, SPAWN_GAMETEXT, SPAWN_TEXTTIME, SPAWN_TEXTSTYLE); pSpawnInfo[playerid][pIsFirstSpawn] = 1; }
Код:
pSpawnInfo[playerid][pIsFirstSpawn] = 0;
Код:
#define SPAWN_GAMETEXT "Spawn text" #define SPAWN_TEXTTIME 5000 #define SPAWN_TEXTSTYLE 1