Old Old School Server
Welcome 2 Old School
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  GalleriesGalleries   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[7.6][C++] Tutorzy pisza na pomaranczowo na helpie..

 
Post new topic   Reply to topic    Old School Server Forum Index -> Skrypty
View previous topic :: View next topic  
Author Message
Slowly Death
Senior Tutor



Joined: 16 Mar 2007
Posts: 84
Read: 0 topics

Warns: 0/5

PostPosted: Sun 20:59, 08 Apr 2007    Post subject: [7.6][C++] Tutorzy pisza na pomaranczowo na helpie..

Otwieramy plik chat.cpp i szukamy takiej funkcji:

Code:
bool Chat::talkToChannel(Player *player, SpeakClasses type, std::string &text, unsigned short channelId)


Pod ta linijka:
Code:

ChatChannel *channel = getChannel(player, channelId);
if(!channel)
return false;



Wklejamy to:

Code:

if (player && player->access == 1 || player->access == 2 && channel->getName () == "Help")
{
     type = SPEAK_CHANNEL_0;
}


player->access ustalilem z gory zakladajac, ze player->access == 1 to Tutor a 2 to Senior Tutor ..


Jesli nie bedzie chcialo sie skompilowac, to otwieramy plik const76.cpp szukamy:
Code:

enum SpeakClasses {


i dopisujemy w ktoryms tam miejscu (obojetnie w sumie) to:
Code:

SPEAK_CHANNEL_0      = 0x0C,


Sposob by Ja :].


The post has been approved 0 times
Back to top
View user's profile
Guser Tatunkh Youres
Newbie



Joined: 27 Dec 2007
Posts: 9
Read: 0 topics

Warns: 0/5

PostPosted: Thu 11:51, 27 Dec 2007    Post subject:

New and Old Pervera ots to NooB and tibi

The post has been approved 0 times
Back to top
View user's profile
Guser Tatunkh Youres
Newbie



Joined: 27 Dec 2007
Posts: 9
Read: 0 topics

Warns: 0/5

PostPosted: Thu 11:51, 27 Dec 2007    Post subject:

jakie huje zagrażają mówić kurw*???????????????? bo Penis

The post has been approved 0 times
Back to top
View user's profile
Guser Tatunkh Youres
Newbie



Joined: 27 Dec 2007
Posts: 9
Read: 0 topics

Warns: 0/5

PostPosted: Thu 11:52, 27 Dec 2007    Post subject:

Old Guwniany bo sra jak dupa

The post has been approved 0 times
Back to top
View user's profile
Guser Tatunkh Youres
Newbie



Joined: 27 Dec 2007
Posts: 9
Read: 0 topics

Warns: 0/5

PostPosted: Thu 11:53, 27 Dec 2007    Post subject:

------------------------------------------xD--------------------------------------------------------

The post has been approved 0 times
Back to top
View user's profile
Guser Tatunkh Youres
Newbie



Joined: 27 Dec 2007
Posts: 9
Read: 0 topics

Warns: 0/5

PostPosted: Thu 11:53, 27 Dec 2007    Post subject:

Hero jest tutaj?

The post has been approved 0 times
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Old School Server Forum Index -> Skrypty All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2002 phpBB Group
Regulamin