Jump to content

Question

2 answers to this question

Recommended Posts

Posted

Pai tu ai creat pickupul Z sa zicem .

new Z = CreatePickup( model, type, Float:X, Float:Y, Float:Z, Virtualworld )

Si el ar fi asa :

new Z = pickup = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);

Nu trebuie neaparat sa adaugi VW , VW ii un parametru optional . Daca vrei neaparat adaugi 0 la final ( 0 - default / vizibil pentru toti ) . Oricum el ii setat pe 0 xD

Si ne folosim de callback-ul : OnPlayerPickUpPickup .

public OnPlayerPickUpPickup(playerid, pickupid)

{

    if(pickupid == Z)

    {

        new name[ MAX_PLAYER_NAME ], str[ 129 ];

        GetPlayerName( playerid, name, MAX_PLAYER_NAME );

        format( str, sizeof str, "Felicitari %s , ai primit 1000 bani ! ", name );

        SCM( playerid, -1, str );

        GivePlayerMoney(playerid, 1000);

    }

    return 1;

}

Daca ai intrebari sa imi zici . Asta a fost un exemplu :) .

idiots.png
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.