Jump to content

Recommended Posts

Posted

Salutare, am vazut ca multi au probleme cu aceasta functie, si o sa incerc sa va ajut.

Bun, sa zicem ca vrem sa facem un job de Hunter.

Mergem undeva in gamemode (nu conteaza dar recomand mai sus)

Mergem la ongamemodeinit sau unde vreti voi sa creati obiectul si punem asta:

caprioara = CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0)

Acum adaugam functia:

public OnPlayerShootDynamicObject(playerid, weaponid, objectid, Float:x, Float:y, Float:z) { if(caprioara == objectid) { SendClientMessage(playerid, -1, "Test."); } }

ATENTIE! AVETI NEVOIE DE STERAMER!

Stiu ca nu a fost tocmai un tutorial reusit dar mna..

Posted

ok, si ce ai demonstrat aici?

macar daca faci un tutorial, fa-l de la 0 si nu mai copia dintr-un gamemode si pune aici pe forum.

Posted (edited)

Nustiu cum sa zic, si nu vreau sa te supar, dar nu ai definit tot necesarul in 

OnPlayerShootDynamicObject(playerid, weaponid, objectid, Float:x, Float:y, Float:z) { if(caprioara == objectid) { SendClientMessage(playerid, -1, "Test."); } }

:D

 

 

Edited by Khain Developer
  • 3 months later...
Posted (edited)
On 1/20/2021 at 12:20 PM, hanako said:

ok, si ce ai demonstrat aici?

macar daca faci un tutorial, fa-l de la 0 si nu mai copia dintr-un gamemode si pune aici pe forum.

de unde ai scos-o si pe asta ca am copiat de undeva?

Edited by Shad0wdpbgd

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.