Jump to content
  • 0

pomoc Mizí Pickup


DeLeTeCZ

Dotaz

Zdravím, mám problém s pickupem, vytvoří se asi na půl sekundy a pak zmizí..

 

Kód: 

v OnFilterScriptInit

	pickup[0] = CreatePickup(1240,2,1600.8307,1818.5260,10.8203,0);

Předem díky za odpovědi.

Link to comment
Share on other sites

9 odpovědí na tuto otázku

Recommended Posts

  • 0
OnPlayerFilterScriptInit()
{
pickup[0] = CreatePickup(1240,2,1600.8307,1818.5260,10.8203,0);
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup[0])
{
SetPlayerHealth(playerid,100);
SendClientMessage(playerid,0x33ccffaa,"Dostal si život");
return 1;
}

Potrebuješ tam to pre život nie či ti to máš urobené cez MTA ?

Link to comment
Share on other sites

  • 0
OnPlayerFilterScriptInit()
{
pickup[0] = CreatePickup(1240,2,1600.8307,1818.5260,10.8203,0);
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup[0])
{
SetPlayerHealth(playerid,100);
SendClientMessage(playerid,0x33ccffaa,"Dostal si život");
return 1;
}
return 0;
}

Potrebuješ tam to pre život nie či ti to máš urobené cez MTA ?

 

Není to přes mta a takto to není potřeba myslím ale i tak to nefunguje :d

už nevím co s tím :d

Link to comment
Share on other sites

  • 0

:facepalm: .. return 0... Ten nemá return 0. Ten má jen OnPlayerCommandText, OnPlayerText, a OnDialogResponse. Upřímně, už nikomu nedať.

 

 

Jinak, autorovi. Pošli to celé, jak to máš :).

 

Tiež niesom dokolaný pawno sa učím tiež robím chyby. -_-

Link to comment
Share on other sites

  • 0

 

Protože, jsi nastavil typ pickupu, že po 30 vteřinách zmizí:

 

http://wiki.sa-mp.com/wiki/PickupTypes

 

pickup[0] = CreatePickup(1240,1,1600.8307,1818.5260,10.8203,0);

 

 

2 - Disappears after pickup, respawns after 30 seconds if the player is at a distance of at least 15 meters.

Zmizne po zobrati, respawne sa po 30 sec ak je hrac v oblasti 15 metrov... Staci sa naucit citat...

 

 

Ak chces staticky pickup na health tak http://wiki.sa-mp.com/wiki/AddStaticPickup

 

PS: Stale som sa este nenaucil telepaticky citat kod niekoho ineho, tak by bolo dobre ak by si ho hodil na pastebin -_-

:facepalm: .. return 0... Ten nemá return 0. Ten má jen OnPlayerCommandText, OnPlayerText, a OnDialogResponse. Upřímně, už nikomu nedať.

 

 

Jinak, autorovi. Pošli to celé, jak to máš :).

 

v pawne moze mat kazda fce navratovu hodnotu, akurad pri niektorych fcych bude zahodena...

Link to comment
Share on other sites

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