Jump to content

[Sistem]Pickup-uri cu viata la war


Extremys

Recommended Posts

In ce consta acest script?: Pai in timpul warului cand omori pe cineva in loc in care el a murit se creeaza un pickup si daca intri in el viata creste iar la 100.

Poze: http://imgur.com/a/eITTL

Script link:  

 
  1. //salut
  2. //Deci pentru inceput adaugam la inceputul gamemodeului urmatoarea:
  3. new viatawar;
  4. //Acum mergem la OnPlayerDeath si cautam functiile de la war cand un player moare in timpul //warului, nustiu daca toti aveti asa dar va dau ceva sa va fie mai usor de gasit "You have //been killed by" va este mai usor vedeti ca acest mesaj este si la paintball ajunsi acolo //adaugam dupa testu asta defapt dupa SCM(dupa "You have been killed by" exista funcita SCM)
  5. new Float:pPosX, Float:pPosY, Float:pPosZ;
  6. GetPlayerPos(playerid, pPosX, pPosY, pPosZ); //aici sa zic asa retinem coordonatele unde va fi //pusa inima
  7. viatawar = CreatePickup(1240, 2, pPosX, pPosY, pPosZ, -1); //aici am creat inima
  8. //Bun, acum mergem la public OnPlayerPickUpPickup(playerid, pickupid)
  9. //si adaugam urmatoarele
  10. if(pickupid == viatawar)
  11.     {
  12.           SetPlayerHealthEx(playerid, 99); //puteti face sa ii adauge +25 hp sau etc dar //depinde de variabile din gamemode, oricum se pot creea .
  13.           SCM(playerid, -1, "Viata ti-a fost regenerata");
  14.           DestroyPickup(viatawar);
  15.     }
  16. //Am facut acest tutorial din plictiseala.
  17. //Daca am greseli gramaticale 'sorry'.

Precizari:  L-am facut din plictiseala.

 

link pastebin: http://pastebin.com/bvUd1FgM

Edited by Extremys

giphy.gif

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.