Szerző Téma: Pickup.  (Megtekintve 1581 alkalommal)

Nem elérhető DeeW

Pickup.
« Dátum: 2011. Március 03. - 21:22:06 »
0 Show voters
Hali, nekem az lenne a kérdésem, hogy lehet olyan pickupot csinálni, hogy ha rámegy betelézze az intibe? Ne parancsra. Sehol sem találtam róla leírást.

Pickup.
« Válasz #1 Dátum: 2011. Március 03. - 21:26:58 »
0 Show voters
new pickup = CreatePickup(pickupid, 2, X, Y, Z, -1);
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup)
    {
    SetPlayerPos(playerid, X, Y, Z);
    SetPlayerInterior(playerid, interiorid);
    }
    return 1;
}

Nem elérhető DeeW

Pickup.
« Válasz #2 Dátum: 2011. Március 03. - 21:30:25 »
0 Show voters
new pickup = CreatePickup(pickupid, 2, X, Y, Z, -1);

 
Ezt hova kell írni? :)

Nem elérhető ►ѕтa

  • 2016
  • Newbie
    • Profil megtekintése
Pickup.
« Válasz #3 Dátum: 2011. Március 03. - 21:32:47 »
0 Show voters
OnGameModeInit/OnFilterScriptInit alá

Nem elérhető DeeW

Pickup.
« Válasz #4 Dátum: 2011. Március 03. - 21:51:25 »
0 Show voters
Valaki írna egy részletesebb leírást? Mert nem nagyon akar sikerülni.
Hiba:
 
C:\\Documents and Settings\\Bando\\Asztal\\Programok,játék,egyéb\\samp03csvr_win32\\gamemodes\\Stunt_MOD.pwn(1610) : warning 213: tag mismatch
C:\\Documents and Settings\\Bando\\Asztal\\Programok,játék,egyéb\\samp03csvr_win32\\gamemodes\\Stunt_MOD.pwn(1625) : error 021: symbol already defined: \"AllowInteriorWeapons\"
C:\\Documents and Settings\\Bando\\Asztal\\Programok,játék,egyéb\\samp03csvr_win32\\gamemodes\\Stunt_MOD.pwn(1628) : error 021: symbol already defined: \"SetGameModeText\"
C:\\Documents and Settings\\Bando\\Asztal\\Programok,játék,egyéb\\samp03csvr_win32\\gamemodes\\Stunt_MOD.pwn(1630) : error 021: symbol already defined: \"ShowPlayerMarkers\"
C:\\Documents and Settings\\Bando\\Asztal\\Programok,játék,egyéb\\samp03csvr_win32\\gamemodes\\Stunt_MOD.pwn(1650) : error 021: symbol already defined: \"AddPlayerClass\"
C:\\Documents and Settings\\Bando\\Asztal\\Programok,játék,egyéb\\samp03csvr_win32\\gamemodes\\Stunt_MOD.pwn(1653) : error 021: symbol already defined: \"CreateObject\"
C:\\Documents and Settings\\Bando\\Asztal\\Programok,játék,egyéb\\samp03csvr_win32\\gamemodes\\Stunt_MOD.pwn(1610) : warning 204: symbol is assigned a value that is never used: \"test\"

 
Ezt nem tudom hogy jó e:
 
new test;
public OnGameModeInit()
{
    test = CreatePickup(1274, 1402.4879,286.1711,19.5547, 9.0);
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup)
    {
    SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
    SetPlayerInterior(playerid, 10);
    }
    return 1;
}
« Utoljára szerkesztve: 2011. Március 03. - 22:01:14 írta _AnToM_ »

Nem elérhető Csabesz

  • 7827
    • Profil megtekintése
Pickup.
« Válasz #5 Dátum: 2011. Március 03. - 22:30:28 »
0 Show voters

#include <a_samp>
new test;
public OnFilterScriptInit()
{
    test = CreatePickup(1274, 1402.4879,286.1711,19.5547, 9.0);
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup)
    {
    SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
    SetPlayerInterior(playerid, 10);
    }
    return 1;
}

Nem elérhető DeeW

Pickup.
« Válasz #6 Dátum: 2011. Március 04. - 13:42:06 »
0 Show voters
Hiba:
 
warning 213: tag mismatch

 Valami nem megfelelõ jel de nem tudok rájönni melyik az.
 
#include <a_samp>
new test;
public OnFilterScriptInit()
{
    test = CreatePickup(1274, 1402.4879, 286.1711, 19.5547, 9.0);  --> Ide írja a hibát.
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == test)
    {
    SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
    SetPlayerInterior(playerid, 10);
    }
    return 1;
}
« Utoljára szerkesztve: 2011. Március 04. - 13:49:52 írta _AnToM_ »

Nem elérhető ►ѕтa

  • 2016
  • Newbie
    • Profil megtekintése
Pickup.
« Válasz #7 Dátum: 2011. Március 04. - 13:59:37 »
0 Show voters
#include <a_samp>
new test;
public OnFilterScriptInit()
{
    test = CreatePickup(1274, 1, 1402.4879, 286.1711, 19.5547, 9.0);
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == test)
    {
    SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
    SetPlayerInterior(playerid, 10);
    }
    return 1;
}
« Utoljára szerkesztve: 2011. Március 04. - 15:55:46 írta staR »

Nem elérhető DeeW

Pickup.
« Válasz #8 Dátum: 2011. Március 04. - 14:00:57 »
0 Show voters
Még mindig ugyan az a hiba.

Nem elérhető SoAP

  • 182
    • Profil megtekintése
Pickup.
« Válasz #9 Dátum: 2011. Március 04. - 14:50:07 »
0 Show voters
Tessék így már jó lesz.
 
#include <a_samp>
new test;
public OnFilterScriptInit()
{
    test = CreatePickup(1274, 1, 1402.4879, 286.1711, 19.5547);
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == test)
    {
    SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
    SetPlayerInterior(playerid, 10);
    }
    return 1;
}

Nem elérhető DeeW

Pickup.
« Válasz #10 Dátum: 2011. Március 04. - 15:16:12 »
0 Show voters
Köszönöm szépen jó!
Csak a Kék pickup helyett Dollár van valamiért és kéne olyan is, hogy ki tudjon menni.
Belsõ pickup:
246.3291,107.4994,1003.2188

 
Hova rakja amikor kiakar menni:
1401.3627,284.1573,19.5547

 

#include <a_samp>
new test;
public OnFilterScriptInit()
{
    test = CreatePickup(1274, 1, 1402.4879, 286.1711, 19.5547);
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == test)
    {
    SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
    SetPlayerInterior(playerid, 10);
    }
    return 1;
}
« Utoljára szerkesztve: 2011. Március 04. - 15:21:00 írta _AnToM_ »

Nem elérhető SoAP

  • 182
    • Profil megtekintése
Pickup.
« Válasz #11 Dátum: 2011. Március 04. - 15:21:13 »
0 Show voters
Megcsinálhattad volna te is. Nem olyan nehéz. Fõleg, hogy példa is van rá..
De tessék. Remélem így gondoltad.
 
#include <a_samp>
new be;
new ki;
public OnFilterScriptInit()
{
    be = CreatePickup(1274, 1, 1402.4879, 286.1711, 19.5547);
    ki = CreatePickup(1274, 1, 246.3291,107.4994,1003.2188);
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == be)
    {
       SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
       SetPlayerInterior(playerid, 10);
    }
    if(pickupid == ki)
    {
        SetPlayerPos(playerid, 1401.3627,284.1573,19.5547);
        SetPlayerInterior(playerid, 0);
}
    return 1;
}

Nem elérhető DeeW

Pickup.
« Válasz #12 Dátum: 2011. Március 04. - 15:26:52 »
0 Show voters
Köszönöm szépen már értem. :D zárok

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal