OnPlayerSpawn Edit

Ovaj callback se koristi kada se igrac spawna.



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],
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    format(string, sizeof(string), "%s se upravo spawnao.", PlayerName);
    SendClientMessageToAll(0xFFFFFFFF, string);
    return 1;

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.