FANDOM


Ovaj callback se koristi kada igrač unese text u chat.


Parametri:

(playerid, text[])

playerid ID igrača koji je unio text
text[] text koji je unesen

Return 0 u ovom callbacku spriječava text da bude poslan


public OnPlayerText(playerid, text[])
{
    newtextv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%s(%d) kaze: %s", name, playerid, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0; // miče defaultni text i šalje text koji je podešen da bude poslan
}

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.