Jump to content
  • 0

Cerere ajutor Pickup


SkyLeAs

Question

Problema intalnita (descriere):Salut am facut si eu un fs pentru sarbatori dar am o problema :( Atunci cand intru in pickup-ul pe care lam facut imi dispare :|+ nu ma da la locatia pe care trebuie . Si cum as putea ca atunci cand ma da la locatia pe care am puso eu sa imi dea o masina :(
Ero(area / rile) / warning-(ul / urile):!
Liniile de cod / sursa / script-ul:

public OnFilterScriptInit()
{
//******************************************************************************
//******************************************************************************
    Create3DTextLabel("{ff1500}SantaLandn{FFFF00AA}Take {FFFFFFAA}Gifts", 0xFFFFF00 , 163.5680,3916.2246,2.7744, 0, 0);
	Santa [0] = CreatePickup(19130, 2, 163.5680,3916.2246,2.7744, -1);
	Santa [1] = CreatePickup(19130, 2, 147.3518,3902.6753,2.7476, -1);
//******************************************************************************
	return 1;
}
#else
//******************************************************************************
public OnPlayerPickUpPickup(playerid, pickupid)
{
//******************************************************************************
    if(pickupid == Santa [0] )
    {
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "{FFFF00AA}Santa {FFFFFFAA}- Mini Events", "Text", "Close", "");
        Santa [2] CreatePickup(19058, 2, 172.8487,3961.3682,3.9757);
        SetPlayerPos(playerid, 194.4860,3905.0623,2.8642);
    }
    else if(pickupid == Santa [2] )
    {
        GivePlayerMoney(playerid, 500000);
        GameTextForPlayer(playerid, "Win 500000$", 5000, 2);
        //DestroyPickup 2
        DestroyPickup( Santa [2] );
        //CreatePickup 3
        Santa [3] CreatePickup(19058, 2, 146.3444,3933.7129,3.8692);
    }
//******************************************************************************
    return 1;
}

Imagini / Video (optional):!
Ati incercat sa rezolvati singur?:Nu nam incercat ca nu stiu

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
public OnFilterScriptInit()
{
       //******************************************************************************
       //******************************************************************************
        Create3DTextLabel("{ff1500}SantaLandn{FFFF00AA}Take {FFFFFFAA}Gifts", 0xFFFFF00 , 163.5680,3916.2246,2.7744, 0, 0);
	Santa [0] = CreatePickup(19130, 2, 163.5680,3916.2246,2.7744, -1);
	Santa [1] = CreatePickup(19130, 2, 147.3518,3902.6753,2.7476, -1);
        Santa [2] = CreatePickup(19130, 2, CoordonateX, CoordonateY, CoordonateZ, -1);
       //******************************************************************************
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    //******************************************************************************
    if(pickupid == Santa [0] )
    {
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "{FFFF00AA}Santa {FFFFFFAA}- Mini Events", "Text", "Close", "");
        Santa [2] CreatePickup(19058, 2, 172.8487,3961.3682,3.9757);
        SetPlayerPos(playerid, 194.4860,3905.0623,2.8642);
    }
    if(pickupid == Santa [1] )
    {
        GivePlayerMoney(playerid, 500000);
        GameTextForPlayer(playerid, "Win 500000$", 5000, 2);
        //DestroyPickup 2
        DestroyPickup( Santa [2] );
        //CreatePickup 3
        Santa [3] CreatePickup(19058, 2, 146.3444,3933.7129,3.8692);
    }
    if(pickupid == Santa [2] )
    {
        new player;
        GetPlayerPos( player, CoordonateX, CoordonateY, CoordonateZ );
        CarSpawner( player, IDVehicul );
    }
    //******************************************************************************
    return 1;
}
Edited by (SE)KnowN

242086.png

Link to comment
Share on other sites

  • 0

public OnFilterScriptInit()
{
       //******************************************************************************
       //******************************************************************************
        Create3DTextLabel("{ff1500}SantaLandn{FFFF00AA}Take {FFFFFFAA}Gifts", 0xFFFFF00 , 163.5680,3916.2246,2.7744, 0, 0);
	Santa [0] = CreatePickup(19130, 2, 163.5680,3916.2246,2.7744, -1);
	Santa [1] = CreatePickup(19130, 2, 147.3518,3902.6753,2.7476, -1);
        Santa [2] = CreatePickup(19130, 2, CoordonateX, CoordonateY, CoordonateZ, -1);
       //******************************************************************************
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    //******************************************************************************
    if(pickupid == Santa [0] )
    {
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "{FFFF00AA}Santa {FFFFFFAA}- Mini Events", "Text", "Close", "");
        Santa [2] CreatePickup(19058, 2, 172.8487,3961.3682,3.9757);
        SetPlayerPos(playerid, 194.4860,3905.0623,2.8642);
    }
    if(pickupid == Santa [1] )
    {
        GivePlayerMoney(playerid, 500000);
        GameTextForPlayer(playerid, "Win 500000$", 5000, 2);
        //DestroyPickup 2
        DestroyPickup( Santa [2] );
        //CreatePickup 3
        Santa [3] CreatePickup(19058, 2, 146.3444,3933.7129,3.8692);
    }
    if(pickupid == Santa [2] )
    {
        new player;
        GetPlayerPos( player, CoordonateX, CoordonateY, CoordonateZ );
        CarSpawner( player, IDVehicul );
    }
    //******************************************************************************
    return 1;
}

La fel man.

Link to comment
Share on other sites

  • 0

Santa [2] CreatePickup(19058, 2, 172.8487,3961.3682,3.9757); aici cred ca ar trebui un egal

Santa [2]= CreatePickup(19058, 2, 172.8487,3961.3682,3.9757);

 

 

si asta ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "{FFFF00AA}Santa {FFFFFFAA}- Mini Events", "Text", "Close", ""); la ce foloseste?

Edited by Neculai
Link to comment
Share on other sites

  • 0

Pune inloc de

 

 

CreatePickup(19130, 2, 163.5680,3916.2246,2.7744, -1);

pune asa cu 1 inloc de 2 la toate pickupurile ,asta ar trebuie sa faca, ca atunci cand intri in el sa nu mai dispara

 

 

CreatePickup(19130, 1, 163.5680,3916.2246,2.7744, -1);

Edited by Selby
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.