Author Topic: !nextmap - Chat vote  (Read 1127 times)

0 Members and 1 Guest are viewing this topic.

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
!nextmap - Chat vote
« on: December 21, 2007, 04:36:27 pm »
I've got problem. I've got script NextMap chat vote but to vote nextmap i must write /nextmap
Please help because i don't know how change this script !nextmap. Its code:

Code: [Select]
Function OnPlayerCommand(ID: Byte; Text: String): Boolean;
Begin
  If Text = '/nextmap' Then
    StartVoteMap(ID, Nextmap)
End;

When i change script to:

Code: [Select]
Function OnPlayerCommand(ID: Byte; Text: String): Boolean;
Begin
  If Text = '!nextmap' Then
    StartVoteMap(ID, Nextmap)
End;

Then this script is not working :( Please help me.



Offline Toumaz

  • Veteran
  • *****
  • Posts: 1906
Re: !nextmap - Chat vote
« Reply #1 on: December 21, 2007, 04:48:52 pm »
OnPlayerSpeak != OnPlayerCommand

Code: [Select]
procedure OnPlayerSpeak(ID: byte; Text: string);
begin
  If Text = '!nextmap' Then
    StartVoteMap(ID, Nextmap)
end;

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: !nextmap - Chat vote
« Reply #2 on: December 21, 2007, 05:36:30 pm »
ok thx Toumaz :)

p. d. id like to add to this scirpt 1 vote on 3min? its possible?
« Last Edit: December 22, 2007, 05:50:14 am by Szewczuq »



Offline KwS Pall

  • Major(1)
  • Posts: 49
  • I'm going to write Tibia for Soldat
Re: !nextmap - Chat vote
« Reply #3 on: December 22, 2007, 06:13:36 am »
use procedure AppOnIdle...
I'm going to write Tibia for Soldat