Official Soldat Forums
Server Talk => Scripting Discussions and Help => Topic started by: Szewczuq 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:
Function OnPlayerCommand(ID: Byte; Text: String): Boolean;
Begin
If Text = '/nextmap' Then
StartVoteMap(ID, Nextmap)
End;
When i change script to:
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.
-
OnPlayerSpeak != OnPlayerCommand
procedure OnPlayerSpeak(ID: byte; Text: string);
begin
If Text = '!nextmap' Then
StartVoteMap(ID, Nextmap)
end;
-
ok thx Toumaz :)
p. d. id like to add to this scirpt 1 vote on 3min? its possible?
-
use procedure AppOnIdle...