I think when you do cmdLfs( "/end " ); the cmdLfs() "HOST" is execute that command. the THE HOST is always a admin
correct me if i'm wrong.
correct me if i'm wrong.
IF(ToNum($LastDriftScore) >= ToNum($GoodDriftScore))THEN
IF(GetCurrentPlayerVar("GetGoodDriftMessage") == 0)THEN
SetCurrentPlayerVar( "GetGoodDriftMessage",1);
globalmsg(GetCurrentPlayerVar("NickName") ." ^7Made a awesome drift!");
ENDIF
ELSE
SetCurrentPlayerVar( "GetGoodDriftMessage",0);
ENDIF
CatchEvent OnConnect( $userName ) # Player event
IF( UserInGroup( "tofus",$userName ) == 1 )
THEN
openPrivTextButton( "sendmessage",1,148,8,4,3,0,"Team Chat","^7Team%nl%^7Chat",120,teammessage );
ENDIF
EndCatchEvent
Sub teammessage ( $username,$teammsg )
$lop = GetListOfPlayers("N");
$NickName = GetCurrentPlayerVar("NickName");
FOREACH ( $de in $lop )
$tofuName = $de["value"];
IF ( UserInGroup( "tofus",$tofuName ) == 1 )
THEN
privMsg ( $tofuName, "^7[^1•^7] Team Chat - " . $NickName);
privMsg ( $tofuName, " ^6" . $teammsg);
ENDIF
ENDFOREACH
EndSub
CatchEvent OnConnect( $userName ) # Player event
IF( UserInGroup( "tofus",$userName ) == 1 )
THEN
## openPrivTextButton( "sendmessage",1,148,8,4,3,0,"Team Chat","^7Team%nl%^7Chat",120,teammessage );
openPrivButton( "open_chat_panel",1,148,8,4,3,-1,ISB_NONE,"^7Team%nl%^7Chat",open_chat_panel );
ENDIF
EndCatchEvent
Sub open_chat_panel ( $KeyFlags, $id )
closePrivButton (open_chat_panel);
$lop = GetListOfPlayers("N");
$NickName = GetCurrentPlayerVar("NickName");
FOREACH ( $de in $lop )
$tofuName = $de["value"];
IF ( UserInGroup( "tofus",$tofuName ) == 1 )
THEN
openPrivButton( "chat_history_msg10",50,68,90,8,8,-1,ISB_DARK+64,$team_msg10,"" );
openPrivButton( "chat_history_msg9",50,76,90,8,8,-1,ISB_DARK+64,$team_msg9,"" );
openPrivButton( "chat_history_msg8",50,84,90,8,8,-1,ISB_DARK+64,$team_msg8,"" );
openPrivButton( "chat_history_msg7",50,92,90,8,8,-1,ISB_DARK+64,$team_msg7,"" );
openPrivButton( "chat_history_msg6",50,100,90,8,8,-1,ISB_DARK+64,$team_msg6,"" );
openPrivButton( "chat_history_msg5",50,108,90,8,8,-1,ISB_DARK+64,$team_msg5,"" );
openPrivButton( "chat_history_msg4",50,116,90,8,8,-1,ISB_DARK+64,$team_msg4,"" );
openPrivButton( "chat_history_msg3",50,124,90,8,8,-1,ISB_DARK+64,$team_msg3,"" );
openPrivButton( "chat_history_msg2",50,132,90,8,8,-1,ISB_DARK+64,$team_msg2,"" );
openPrivButton( "chat_history_msg1",50,140,90,8,8,-1,ISB_DARK+64,$team_msg1,"" );
openPrivTextButton( "sendmessage",50,148,90,8,8,32+64,"Team Chat","^3Write message",120,teammessage );
openPrivButton( "close_chat_panel",50,156,90,8,8,-1,ISB_DARK,"Close",close_chat_panel );
ENDIF
ENDFOREACH
EndSub
Sub close_chat_panel ( $KeyFlags, $id )
closePrivButton("sendmessage&close_chat_panel&chat_history_msg1&chat_history_msg2&chat_history_msg3&chat_history_msg4&chat_history_msg5&chat_history_msg6&chat_history_msg7&chat_history_msg8&chat_history_msg9&chat_history_msg10");
openPrivButton( "open_chat_panel",1,148,8,4,3,-1,ISB_NONE,"^7Team%nl%^7Chat",open_chat_panel );
EndSub
Sub teammessage ( $username,$teammsg )
$lop = GetListOfPlayers("N");
$NickName = GetCurrentPlayerVar("NickName");
FOREACH ( $de in $lop )
$tofuName = $de["value"];
IF ( UserInGroup( "tofus",$tofuName ) == 1 )
THEN
privMsg ( $tofuName, "^7[^1•^7] Team Chat - " . $NickName);
privMsg ( $tofuName, " ^6" . $teammsg);
ENDIF
ENDFOREACH
EndSub
Sub SoccerCalcTime($argv) #$argv in seconds
$Minutes = round(($argv/60),0);
$Time = (round(($argv/60),2)-$Minutes);
$Seconds = round(($Time*60),0);
IF($Seconds < 0)THEN # when seconds are negative
$Minutes = $Minutes-1;
$Seconds = 60 + $Seconds;
ENDIF
Timer($Minutes,$Seconds);#Goto Countdowntimer
EndSub
Sub Timer($Minutes,$Seconds)
IF($Minutes >= 0)THEN
openGlobalButton( "timer",80,0,40,6,1,$Seconds,36,"^3##### ^7TimeLimit: ".$Minutes."^7:%cpt% ^3#####",Timer);
$Seconds = 59;
$Minutes=$Minutes-1;
ELSE
SoccerTimeLimitExpires();
ENDIF
EndSub
RegisterzoneAction( RedGoalPos,getLapperVar( "ShortTrackName" ),$RedGoal_X,$RedGoal_Y,$RedGoal_W, RedTeamScored, "");
RemovezoneAction(RedGoalPos, getLapperVar( "ShortTrackName" ));
RegisterzoneAction:[/b]
listOfZoneEvent.Add(idTask, args[0].ToString(), x1, y1, dist, args[4].ToString(), args[5].ToString());
//ID , CurrentTrack , X_axis , Y_Axis , Width, Sub enter , Sub Leave
[b]RemovezoneAction:[/b]
listOfZoneEvent.Remove(args[0].ToString(), args[1].ToString()); // ID , Current track