Szerző Téma: Pickup  (Megtekintve 773 alkalommal)

Pickup
« Dátum: 2012. Július 05. - 12:33:52 »
0 Show voters
Hello!
Hogy tudom megoldani azt hogy ezen a pick uppon ha átmegyek kocsival akkor is adja a pénzt vagy csak akkor?
 
#include <a_samp>
new cash;
 
public OnGameModeInit()
{
    cash = CreatePickup(1242, 2, 2273.4231,578.8379,7.7888, -1);
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == cash) GivePlayerMoney(playerid,10000);
    return 1;
}

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Pickup
« Válasz #1 Dátum: 2012. Július 05. - 12:43:36 »
0 Show voters

#include <a_samp>
    new cash;
     
     
    public OnGameModeInit()
    {
        cash = CreatePickup(1242, 14, 2273.4231,578.8379,7.7888, -1);
        return 1;
    }
     
    public OnPlayerPickUpPickup(playerid, pickupid)
    {
        if(pickupid == cash) GivePlayerMoney(playerid,10000);
        return 1;
    }

Pickup
« Válasz #2 Dátum: 2012. Július 05. - 12:49:24 »
0 Show voters
Nem jó de minek kellet 14 re írni? :D

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
Pickup
« Válasz #3 Dátum: 2012. Július 05. - 12:57:42 »
+1 Show voters

#include   <     a_samp     >
 
new
     Pickup;
 
public OnGameModeInit( )
{
     Pickup = CreatePickup( 1242, 2, 2273.4231, 578.8379, 7.7888, -1 );
     // OnFilterScriptInit() - OnGameModeInit() eljárásnak nincsen visszatérési értéke
}
public OnPlayerPickUpPickup( playerid, pickupid )
{
      if( pickupid == Pickup )
      {
              GivePlayerMoney( playerid, 10000 );
      }
      return 1;
}
« Utoljára szerkesztve: 2012. Július 05. - 12:59:39 írta Gabor.. »

Pickup
« Válasz #4 Dátum: 2012. Július 05. - 13:16:28 »
0 Show voters
mindig hiába meek kocsival át nem ad pénzt

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
Pickup
« Válasz #5 Dátum: 2012. Július 05. - 13:20:50 »
+1 Show voters
A 14-es pickup tipussal se? A 1241 mögötti számot módosítsd, 14-re.

Pickup
« Válasz #6 Dátum: 2012. Július 05. - 13:47:18 »
0 Show voters
És hallod Gábor ha mongyuk azt akarom h ne pénzt adjon hanem ültessen egy másik kocsiba?Azt hogyan lehet megoldani?Elõre is thx :D

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Pickup
« Válasz #7 Dátum: 2012. Július 05. - 13:56:28 »
0 Show voters
Idézetet írta: Dukma123 date=1341485364\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"23818\" data-ipsquote-contentclass=\"forums_Topic
Nem jó de minek kellet 14 re írni? :D
 
Ezért:
Type 14          Pickupable, but only when in a vehicle.

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
Pickup
« Válasz #8 Dátum: 2012. Július 05. - 14:17:01 »
0 Show voters
PutPlayerInVehicle függvény

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
Pickup
« Válasz #9 Dátum: 2012. Július 05. - 14:18:14 »
0 Show voters
Idézetet írta: faker4e date=1341488838\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"23818\" data-ipsquote-contentclass=\"forums_Topic
És hallod Gábor ha mongyuk azt akarom h ne pénzt adjon hanem ültessen egy másik kocsiba?Azt hogyan lehet megoldani?Elõre is thx :D
 


PutPlayerInVehicle( playerid, CreateVehicle( 541, 0.0, 0.0, 0.0, 0.0, random( 126 ), random( 126 ), -1 ), 0 );

Ez rakd oda, ahol belemegy a pickupba. ( Kordinákat írd át. )
« Utoljára szerkesztve: 2012. Július 05. - 14:26:51 írta Gabor.. »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal