Jump to content
  • 0

Crearea unui obiect


Ursachi

Question

Buna ziua/seara doamnelor si domnilor. Problema mea este urmatoarea:

Am cautat pe net si nu am gasit nici o informatie... vreau sa creez un obiect asemanator cu cele din MTA pentru a le adauga pe server... vreau sa le adaug pe serverul meu personal sa le vada toata lumea nu numai eu cu img tools sau orice alt program de acest gen. Nu am gasit nici un tutorial sau orice altceva legat de asta dar am vazut pe multe servere obiecte personalizate.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

[pawn]public OnPlayerCommandText(playerid,cmdtext[])

{

    if(!strcmp(cmdtext,"/cmd",true))

    {

        new Float:X, Float:Y, Float:Z;

        new myobject;

        GetPlayerPos(playerid, X, Y, Z);

        myobject = CreateObject(19371, X, Y, Z+0.5, 0.0, 0.0, 0.0, 300.0);

        SetObjectMaterial(myobject, 0, 19341, "egg_texts", "easter_egg01", 0xFFFFFFFF);

        return 1;

    }

    return 0;

}[/pawn]

Sursa: http://wiki.sa-mp.com/wiki/SetObjectMaterial

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.