.| Autor | Beitrag |
|---|---|
|
000 12.02.2004, 13:01 -[Phoenix]- |
Moinsen! Vielleicht kann mir ja jemand von euch helfen. Ich suche z.Z. das Basic-Money System Tutorial von Gavin, kann es aber Hat vielleicht jemand von euch das Tutorialnoch bei sich herumliegen oder P.S. Kommt mir nicht mit "ne Runde googeln", das hab ich schon gemacht |
|
Profil || Suche |
|
001 12.02.2004, 13:31 Ryoga |
Hab's für dich^^ , sorry ,leider hab ich grad kein Webspace frei also copier ich's einfach hier rein^^ Basic Money System Gavin Intermediate -------------------------------------------------------------------------------- Basic Money System int m_iPlayerSound; Put: int m_iMoneyAmount; That variable will hold the amount of money a person has. We need to give the SetThink(PlayerDeathThink); Put the line m_iMoneyAmount += 100; That gives the money to the person when they die. Open up client.cpp and go to pl->Killed( pev, GIB_NEVER ); Put pl->m_iMoneyAmount -= 100; That will subtract $100 because a person killed themselves. Now to give money Put the line pAttacker->m_iMoneyAmount += 500; That will give the killer $500. Now all that money is nothing unless you can #include "game.h" Put extern int gmsgShowMenu; Editor: This isnt the complete menu code. Read the menu tutorial at Wavelength. That will allow us to show a menu to buy the weapons. Go to the clientcommand return FALSE; Put else if (FStrEq(pcmd, "buy" )) That will show the menu, there is a variable there that says what menu it is. m_iMoneyAmount; Put m_iMenu; I use that variable so I can have different things happen with each different int slot = atoi( CMD_ARGV(1) ); Put if(pPlayer->m_iMenu == 1) That will check to see if the menu is the correct one (the one to give |
|
Profil || Suche |
|
002 12.02.2004, 14:03 -[Phoenix]- |
Jo, vielen Dank für die schnelle Hilfe, ist sehr nett von dir. -- |
|
Profil || Suche |

