OnPlayerSpawn

OnPlayerSpawn
Ovaj callback se koristi kada se igrac spawna.

Parametri:


 * playerid ID igraca koji se spawnao.

Return: Koristi 0 da bi postavio na selekciju klase za sledeci respawn.

public OnPlayerSpawn(playerid) {   new PlayerName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); format(string, sizeof(string), "%s se upravo spawnao.", PlayerName); SendClientMessageToAll(0xFFFFFFFF, string); return 1; }