FANDOM


OnPlayerConnect Edit

Ovaj callback se koristi kada se igrac konektuje na server.


Parametri:

(playerid)

playerid ID igraca koji se konektovao.


Return: Ne koristi se.


public OnPlayerConnect(playerid)
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s se upravo pridruzio serveru. Dobrodosao!",pName);
    SendClientMessageToAll(0xFFFFFFAA,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.