Jump to content

[Tutorial] Cum sa faci un pickup pt o anumita locatie


Recommended Posts

Salut bugged astazi o sa va arat cum sa faceti un pickup pt o anumita locatie


1.creem new-ul


   new bugg;



2.acum o sa creem pickup-ul :cautam OnGameModeInit si o sa adaugam:


  bugg=CreatePickup(1239, 19, x, y, z);  La x ,y , z adaugati unde sa fie pickup-ul



3.akum o sa cautam OnPlayerPickUpPickup si  o sa adaugam asta:


         if ( pickupid == bugg )

GameTextForPlayer(playerid,"~r~Welcome to 24/7", 6000, 1);
SetPlayerPos(playerid, 1000.0, 1000.0, 10.0);
SetPlayerInterior(playerid, 0);



Acum o sa va explic urmatoarele lucruri:

http://wiki.sa-mp.com/wiki/Pickup_IDs   ==> modele de pickup


Aspt comentari/pareri.

Edited by ArMa.BUG
Link to comment
Share on other sites

  • 3 months later...

La unele servere pui niste pickup-uri sa zicem la San Fierro, si acolo pui o iconita, si daca intri in ea iti arata sa zicem comenzile .. Aceasta este tutorialul ?

Daca te duci la cel pick-up poti face tu ce vrei. La pasul 3 pui ce o sa se intample cand iei pickup-ul.

Link to comment
Share on other sites

  • 1 year later...

Nu e complicat, dar pentru incepatori merge.


"new-ul"= variabila globala, in rest are ceva lipsuri tutorialul.


Da, e o variabila globala.


Daca va pune "new" mai sus de CreatePickUp si dupa va pune iarasi "bugg" la OnPlayerPickUp, ii va da o eroare.

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.

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

By using this site, you agree to our Terms of Use. 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.