www.hellss.fora.pl
Hells! Nice Forum About Helbreath
FAQ
Szukaj
Użytkownicy
Grupy
Galerie
Rejestracja
Profil
Zaloguj się, by sprawdzić wiadomości
Zaloguj
Forum www.hellss.fora.pl Strona Główna
->
Code
Napisz odpowiedź
Użytkownik
Temat
Treść wiadomości
Emotikony
Więcej Ikon
Kolor:
Domyślny
Ciemnoczerwony
Czerwony
Pomarańćzowy
Brązowy
Żółty
Zielony
Oliwkowy
Błękitny
Niebieski
Ciemnoniebieski
Purpurowy
Fioletowy
Biały
Czarny
Rozmiar:
Minimalny
Mały
Normalny
Duży
Ogromny
Zamknij Tagi
Opcje
HTML:
NIE
BBCode
:
TAK
Uśmieszki:
TAK
Wyłącz BBCode w tym poście
Wyłącz Uśmieszki w tym poście
Kod potwierdzający: *
Wszystkie czasy w strefie EET (Europa)
Skocz do:
Wybierz forum
Hells!
----------------
Citi Hall
Hells
Helbreath
----------------
Code
FIX
Server Confing
Helbreath
Help
Anty Hacks
Screnshot
Przegląd tematu
Autor
Wiadomość
Nigga
Wysłany: Wto 14:20, 18 Mar 2008
Temat postu: [CODE] /contrib
HG Server
Game.cpp
Kod:
/*======ContribScript=====/contrib==By-Acidx==*/
void CGame::Player_OrderContrib(int iClientH)
{/*An Acidx Production - Last Updated Sept.06, 2006 - By Acidx*/
char cMessage[255];
ZeroMemory(cMessage, sizeof(cMessage));
if (iClientH != NULL)
if (m_pClientList[iClientH]->m_iContribution > 100)
{
wsprintf( cMessage ,"Error. You can only use this 1 time");
ShowClientMsg(iClientH, cMessage);
}else
{
wsprintf( cMessage ,"2000 Contrib Has been Added To Your Character");
ShowClientMsg(iClientH, cMessage);
m_pClientList[iClientH]->m_iContribution += 2000;
//Lmao Hack us a notify message to Activly update it in game without needing to logout jaja owned+1 - Acidx
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_QUESTREWARD, 4, 1, m_pClientList[iClientH]->m_iQuestRewardAmount,
"Script By Acidx", m_pClientList[iClientH]->m_iContribution);
}
}
En el game.cpp, dentro de la funcion "ChatMsgHangler"
Kod:
if (memcmp(cp, "/contrib", 8) == 0){
Player_OrderContrib(iClientH);
return;
}
En Game.H, agregar:
Kod:
void Player_OrderContrib(int iClientH);
fora.pl
- załóż własne forum dyskusyjne za darmo
Powered by
phpBB
© 2001, 2002 phpBB Group
Regulamin