Register for your free account! | Forgot your password?
CS2 Cheats

Go Back   elitepvpers > Popular Games > Counter-Strike
You last visited: Today at 18:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Sourcemod: Fehler im Script?

Discussion on Sourcemod: Fehler im Script? within the Counter-Strike forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2013
Posts: 116
Received Thanks: 3
Sourcemod: Fehler im Script?

Hallo, ich habe ein kurzes Script geschrieben, dass immer nach 120 Sekunden einen bestimmten Text an den Chat senden soll. Funktioniert auch soweit, allerdings habe ich das Gefühlt, dass ich irgendwie 2 Timer am laufen habe, es wird ab und an gleich 2 mal der Text gepostet

Hier mein Quellcode:
Code:
public OnClientPutInServer(client)
{
	CreateTimer(120.0, TimerCallBack, client, TIMER_REPEAT);
	PrintToChat(client, "\x03Du kannst folgende Kommandos benutzen:\x03 \x04!res, !quake, !rs, !admins, !plugins, votekick, voteban\x04");
}

public OnPluginStart()
{

}

public Action:TimerCallBack(Handle:timer, any:client)
{
	PrintToChat(client, "\x03Du kannst folgende Kommandos benutzen:\x03 \x04!res, !quake, !rs, !admins, !plugins, votekick, voteban\x04");
}
Noch eine Frage, wie kann ich mehrere Sparchen verwenden, also das mit den Translation Files und so ^^ hoffe ihr wisst, was ich meine

MfG

thosan123
thosan123 is offline  
Old 05/17/2013, 17:41   #2

 
.Bara.'s Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 434
Received Thanks: 56
Am Anfang das hier noch hinzufügen
Quote:
#include <sourcemod>
und evtl.
Quote:
TIMER_REPEAT
mit das hier ersetzen
Quote:
TIMER_REPEAT | TIMER_FLAG_NO_MAPCHANGE
/Edit
Warum brauchst du client? Setze es doch bei OnMapStart() ein und dann für
Quote:
CreateTimer(120.0, TimerCallBack, client, TIMER_REPEAT);
das hier
Quote:
CreateTimer(120.0, TimerCallBack, _, TIMER_REPEAT);
Dazu noch dies hier:
Quote:
public Action:TimerCallBack(Handle:timer, any:client)
in...
Quote:
public Action:TimerCallBack(Handle:timer)
.Bara. is offline  
Old 05/17/2013, 17:54   #3
 
elite*gold: 0
Join Date: Apr 2013
Posts: 116
Received Thanks: 3
Ok danke, ich probiere es jetzt nochmal und melde mich ^^
thosan123 is offline  
Reply


Similar Threads Similar Threads
IE.au3 fehler im script
04/05/2013 - AutoIt - 2 Replies
So hier erstmal das script : Global $i = 0 Global $file = "proxies.txt" Global $timeoutset = 0 Global $error = FileRead("quell.txt") Global $false = FileRead("false.txt") HotKeySet("{ESC}","_end")
IS-Buy script by !Hen Fehler!
05/16/2012 - Metin2 Private Server - 2 Replies
<?PHP if(isset($_SESSION) && checkInt($_SESSION) && $_SESSION>=0) { if(isset($_GET) && checkInt($_GET)) { $sqlCmd="SELECT vnum, preis, attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3, attrtype4, attrvalue4, attrtype5, attrvalue5, attrtype6, attrvalue6, socket0, socket1, socket2 FROM ".SQL_HP_DB.".is_items WHERE id='".$_GET."' LIMIT 1"; $sqlQry=mysql_query($sqlCmd,$sqlHp); if(mysql_num_rows($sqlQry)==1) {
Hen Script fehler HELP!!
07/06/2011 - Metin2 Private Server - 3 Replies
Hey , ich wollte heute mal wieder meine Homepage für den Server auf nen Webspace klatschen ( am webspace liegt es nicht ) habe die install.php ausgeführt alles tip top soweit .. dann steht da aber : Es tut uns leid es konnte keiner Verbindung zur Datenbank hergestellt werden. Naja ich nehme mir das blanke CMS von hen und tada damit geht es . auch mit jedem andern script. selbst wenn ich den ganzen INC ordnder von dem script nehme wo es geht und in ihn in das script stecke wo es nicht...
Script Fehler
01/31/2010 - General Coding - 5 Replies
<html> <title>Startseite</title> <head> <center> <style type="text/css"> #header { position:absolute; background-img: url (img/box-bottom.png) width:1000px; height:160px;
Fehler im Script ?
10/19/2009 - AutoIt - 0 Replies
Da ich erst eine kurze Zeit mich mit Autoit beschäftige hätte ich gerne mal Hilfe von ein paar Profis. Habe für Aion einen AutoLoginBot geschrieben, welcher bisher auch relativ gut funktioniert. Er fragt beim ersten Start ein paar Daten für den AutoLogin ab wie z.B. die Accountdaten, welche verschlüsselt in die Registry eingetragen werden und sobald das Game gestartet ist entschlüsselt/ausgelesen werden. Dummerweise ist es so, das wenn ich während das Game läd, und ich das Fenster vom Game...



All times are GMT +1. The time now is 18:21.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.