Jump to content
  • 0

Question

Posted

Salut, uneori cand folosesc o comanda nu apare pickupul de bani iar alteori apare. Jucatorul e in virtual 0, nu e in interioare sau altele.

new rob_pickup[MAX_PLAYERS];

YCMD:rob(playerid, params[], help) {

    new Float: x, Float: y, Float: z;

    GetPlayerPos(playerid, x, y, z);

    rob_pickup[playerid] = CreateDynamicPickup(1212, 8, x, y, z, 0);

    return 1;

}

3 answers to this question

Recommended Posts

  • 0
Posted
rob_pickup[playerid] = CreateDynamicPickup(1212, 8, x, y, z);
Streamer_Update(playerid, STREAMER_TYPE_PICKUP);

also, try changing pickup type to 23

  • 0
Posted
14 hours ago, Pa4enka said:
rob_pickup[playerid] = CreateDynamicPickup(1212, 8, x, y, z);
Streamer_Update(playerid, STREAMER_TYPE_PICKUP);

also, try changing pickup type to 23

Thanks for the response, but could you explain what Streamer_Update does?

  • 0
Posted (edited)
3 hours ago, TheGodfather said:

Thanks for the response, but could you explain what Streamer_Update does?

Updates streamer items. In our case - pickups.

Edited by Pa4enka

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
×
×
  • 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.