komenda

RemoMKWA

Advanced User
Zarejestrowany
Dołączył
Marzec 2, 2010
Posty
209
Liczba reakcji
4
Witam chcia?em zrobi? tak? komend? ?eby gracze bez pz(jak maj? pz to nie dzia?a) mogli sie tp do Temple + za to
 
Odp: komenda

/t
ta jest dla gm ale mozesz zrobic w commands.xml zeby byla od accesu zero ale w tedy kazdy bedzie mogl . ;/
 
Odp: komenda

@UP
Thanks, idiot.

@TOPIC
game.cpp
pod:
Kod:
	if(!GMcommand){
		Player* player = dynamic_cast<Player*>(creature);
		if (player)
			checkSpell(player, type, text);
dodaj:
Kod:
if (text == "/teleport"){
                       if(player->inFightTicks == 0){
                       teleport(player, c->masterPos);
                       player->sendTextMessage(MSG_SMALLINFO, "Let's GO!");
                        } else {
                        player->sendTextMessage(MSG_SMALLINFO, "Masz PZ!");
                        }
                       }
 
Back
Do góry