Jump to content

problema pickup


AlexCelTare

Recommended Posts

new pickup_1;
new pickup_2;
new pickup_3;
new pickup_4;
new pickup_5;
new pickup_6;
new pickup_7;
new pickup_8;
new pickup_9;
new pickup_10;

public OnGameModeInit()
{
    pickup_1 = CreatePickup(1279, 19, -1921.38147, -1233.18872, 39.12018);
    pickup_2 = CreatePickup(1279, 19, -2275.00098, -715.01282, 76.01287);
    pickup_3 = CreatePickup(1279, 19, -1902.81067, 219.20653, 34.89344);
    pickup_4 = CreatePickup(1279, 19, -226.97255, 1004.67651, 19.97336);
    pickup_5 = CreatePickup(1279, 19, 1353.42322, 476.38995, 19.94469);
    pickup_6 = CreatePickup(1279, 19, 2263.62500, 28.08001, 25.95544);
    pickup_7 = CreatePickup(1279, 19, 1489.67090, -1691.08484, 14.86903);
    pickup_8 = CreatePickup(1279, 19, 1936.89856, -1602.56494, 13.42822);
    pickup_9 = CreatePickup(1279, 19, 13.91880, -1524.43152, 3.64718);
    pickup_10 = CreatePickup(1279, 19, 153.72369, -1962.90234, 3.79103);
    return 1;
}

 

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup_1)
    {
        GivePlayerMoney(playerid, 115);
        GameTextForPlayer(playerid,"~b~~>~Collected\nHalloween Event Package!~<~",3000,4);
    }
    if(pickupid == pickup_2)
    {
        GivePlayerMoney(playerid, 157);
        GameTextForPlayer(playerid,"~b~~>~Collected\nHalloween Event Package!~<~",3000,4);
    }
    if(pickupid == pickup_3)
    {
        GivePlayerMoney(playerid, 343);
        GameTextForPlayer(playerid,"~b~~>~Collected\nHalloween Event Package!~<~",3000,4);
    }
    if(pickupid == pickup_4)
    {
        GivePlayerMoney(playerid, 240);
        GameTextForPlayer(playerid,"~b~~>~Collected\nHalloween Event Package!~<~",3000,4);
    }
    if(pickupid == pickup_5)
    {
        GivePlayerMoney(playerid, 88);
        GameTextForPlayer(playerid,"~b~~>~Collected\nHalloween Event Package!~<~",3000,4);
    }
    if(pickupid == pickup_6)
    {
        GivePlayerMoney(playerid, 253);
        GameTextForPlayer(playerid,"~b~~>~Collected\nHalloween Event Package!~<~",3000,4);
    }
    if(pickupid == pickup_7)
    {
        GivePlayerMoney(playerid, 125);
        GameTextForPlayer(playerid,"~b~~>~Collected\nHalloween Event Package!~<~",3000,4);
    }
    if(pickupid == pickup_8)
    {
        GivePlayerMoney(playerid, 99);
        GameTextForPlayer(playerid,"~b~~>~Collected\nHalloween Event Package!~<~",3000,4);
    }
    if(pickupid == pickup_9)
    {
        GivePlayerMoney(playerid, 367);
        GameTextForPlayer(playerid,"~b~~>~Collected\nHalloween Event Package!~<~",3000,4);
    }
    if(pickupid == pickup_10)
    {
        GivePlayerMoney(playerid, 133);
        GameTextForPlayer(playerid,"~b~~>~Collected\nHalloween Event Package!~<~",3000,4);
    }
    return 1;
}

 

! NU DA EROARE LA COMPILE ! DAR CAND IL BAG PE HOST, NU SE SPANWEAZA NICI UN PICKUP !

Link to comment
Share on other sites

pickup_1 = CreatePickup(1279, 23, -1921.38147, -1233.18872, 39.12018);
pickup_2 = CreatePickup(1279, 23, -2275.00098, -715.01282, 76.01287);
pickup_3 = CreatePickup(1279, 23, -1902.81067, 219.20653, 34.89344);
pickup_4 = CreatePickup(1279, 23, -226.97255, 1004.67651, 19.97336);
pickup_5 = CreatePickup(1279, 23, 1353.42322, 476.38995, 19.94469);
pickup_6 = CreatePickup(1279, 23, 2263.62500, 28.08001, 25.95544);
pickup_7 = CreatePickup(1279, 23, 1489.67090, -1691.08484, 14.86903);
pickup_8 = CreatePickup(1279, 23, 1936.89856, -1602.56494, 13.42822);
pickup_9 = CreatePickup(1279, 23, 13.91880, -1524.43152, 3.64718);
pickup_10 = CreatePickup(1279, 23, 153.72369, -1962.90234, 3.79103);

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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