Jump to content
  • 0

playerid


Paul.eboy

Question

4 answers to this question

Recommended Posts

Ruben" post="65069" timestamp="1302374699"]

La OnPlayerText

    new
        str[128];

    format(str, sizeof(str), "[%d]: %s", playerid, text);
    SendPlayerMessageToAll(playerid, str);
    return 0;
}
Buna dimineata. Du-te si te culca inapoi sa mai visezi putin pawno si apoi cand te trezesti postezi aici.
Ce trebuie sa schimb/ce fs trebuie sa adaug,ca,cand cineva scrie in chat,sa-mi arate si playerid? de ex: Paul.eboy[id-10]-salut!
Cauta OnPlayerConnect si la linia unde iti apare cica a intrat pe server adaugi %d si playerid. Exemplu:
"%s [%d] a intrat pe server", Name, playerid);

Ce este intre [ si ] trebuie sa adaugi tu, iar dupa " (ghilimele) adaugi si playerid (vezi sa fie dupa Name sau ce ai tu, uita-te atent la exemplu.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.