Advertisement
Guest User

IG Panel

a guest
Oct 14th, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 14.98 KB | None | 0 0
  1. /*
  2.  
  3.       .--"""""--._
  4.    .'             '.
  5.   /                 \
  6.  ;      By Msk.      \
  7.  |                   |
  8.  |                   |
  9.  \                   |
  10. H \ (`'--,    ,--'`) /
  11. A  \ \  _ )  ( _  / /
  12. R   ) )(')/  \(')( (
  13. D  (_ `""` /\ `""` _)
  14. C   \`"-, /  \ ,-"`/
  15. O    `\ / `""` \ /`
  16. R     |/\/\/\/\/\|
  17. E     |\        /|
  18.       ; |/\/\/\| ;
  19. S      \`-`--`-`/
  20. C       \      /
  21. R        ',__,'
  22. I
  23. P       Server IG Panel V.1
  24. T
  25. E
  26. R
  27.  
  28. */
  29. #include <a_samp>
  30. #include <zcmd>
  31.  
  32. #define D_GMN 1
  33. #define D_MP 2
  34. #define D_FL 3
  35. #define D_FEL 4
  36. #define D_NAL 5
  37. #define D_UZE 6
  38.  
  39. new Text:Textdraw [ 16 ];
  40. new max_ping = 500;
  41. new ping_warnings [ MAX_PLAYERS ] = 0;
  42.  
  43. forward PingCheck();
  44.  
  45. public PingCheck()
  46. {
  47.     for ( new x = 0; x < MAX_PLAYERS; x++) {
  48.         new str1 [ 128 ], pName [ MAX_PLAYER_NAME+1 ];
  49.         if ( GetPlayerPing (x ) >= max_ping )
  50.         {
  51.             ping_warnings [ x ]++;
  52.             if ( ping_warnings[x] == 3 )
  53.             GetPlayerName ( x, pName, MAX_PLAYER_NAME+1 );
  54.             format ( str1, 128, "{FFFFFF}**** %d wurde wegen zu hohen Ping gekickt(Max Ping: %d)", pName,max_ping );
  55.             SendClientMessageToAll ( -1, str1 );
  56.             Kick ( x );
  57.         }
  58.     }
  59.     return 1;
  60. }
  61. CMD:panel(playerid,params[])
  62. {
  63.     if ( !IsPlayerAdmin ( playerid ) )
  64.         return SendClientMessage ( playerid,0xFFFFFFFF,"[Fehler]: Du bist kein Admin" );
  65.     SelectTextDraw ( playerid, 0xFF0005FF );
  66.     for ( new x = 0; x < 16; x++ ) {
  67.         SendClientMessage ( playerid, 0xFFFFFFFF, "" ); }
  68.     ShowAll ( playerid );
  69.     return 1;
  70. }
  71.  
  72. public OnFilterScriptInit()
  73. {
  74.     SetTimer ( "PingCheck", 5000, 1 );
  75.     Textdraw [ 0 ] = TextDrawCreate(600.000000, 63.000000, "                                    ");
  76.     TextDrawBackgroundColor(Textdraw [ 0 ] , 255);
  77.     TextDrawFont(Textdraw [ 0 ] , 1);
  78.     TextDrawLetterSize(Textdraw [ 0 ]  , 0.500000, 1.000000);
  79.     TextDrawColor(Textdraw [ 0 ] , -1);
  80.     TextDrawSetOutline(Textdraw [ 0 ] , 0);
  81.     TextDrawSetProportional(Textdraw [ 0 ] , 1);
  82.     TextDrawSetShadow(Textdraw [ 0 ] , 1);
  83.     TextDrawUseBox(Textdraw [ 0 ] , 1);
  84.     TextDrawBoxColor(Textdraw [ 0 ] , 204);
  85.     TextDrawTextSize(Textdraw [ 0 ] , 46.000000, 0.000000);
  86.  
  87.     Textdraw [ 1 ]  = TextDrawCreate(50.000000, 63.000000, "                         Server Einstellungen");
  88.     TextDrawBackgroundColor(Textdraw [ 1 ], 255);
  89.     TextDrawFont(Textdraw [ 1 ], 1);
  90.     TextDrawLetterSize(Textdraw [ 1 ], 0.500000, 2.200000);
  91.     TextDrawColor(Textdraw [ 1 ], -1);
  92.     TextDrawSetOutline(Textdraw [ 1 ], 0);
  93.     TextDrawSetProportional(Textdraw [ 1 ], 1);
  94.     TextDrawSetShadow(Textdraw [ 1 ], 1);
  95.     TextDrawUseBox(Textdraw [ 1 ], 1);
  96.     TextDrawBoxColor(Textdraw [ 1 ], 65535);
  97.     TextDrawTextSize(Textdraw [ 1 ], 596.000000, 0.000000);
  98.  
  99.     Textdraw [ 2 ] = TextDrawCreate(80.000000, 120.000000, "Gamemode Name");
  100.     TextDrawBackgroundColor(Textdraw [ 2 ] , 255);
  101.     TextDrawFont(Textdraw [ 2 ] , 1);
  102.     TextDrawLetterSize(Textdraw [ 2 ] , 0.310000, 2.000000);
  103.     TextDrawColor(Textdraw [ 2 ] , -1);
  104.     TextDrawSetOutline(Textdraw [ 2 ] , 0);
  105.     TextDrawSetProportional(Textdraw [ 2 ] , 1);
  106.     TextDrawSetShadow(Textdraw [ 2 ] , 1);
  107.     TextDrawUseBox(Textdraw [ 2 ] , 1);
  108.     TextDrawBoxColor(Textdraw [ 2 ] , 255);
  109.     TextDrawTextSize(Textdraw [ 2 ] , 169.000000, 15.000000);
  110.     TextDrawSetSelectable(Textdraw [ 2 ], 1);
  111.  
  112.     Textdraw [ 3 ]  = TextDrawCreate(80.000000, 171.000000, "Maximaler Ping");
  113.     TextDrawBackgroundColor(Textdraw [ 3 ], 255);
  114.     TextDrawFont(Textdraw [ 3 ], 1);
  115.     TextDrawLetterSize(Textdraw [ 3 ], 0.310000, 2.000000);
  116.     TextDrawColor(Textdraw [ 3 ], -1);
  117.     TextDrawSetOutline(Textdraw [ 3 ], 0);
  118.     TextDrawSetProportional(Textdraw [ 3 ], 1);
  119.     TextDrawSetShadow(Textdraw [ 3 ], 1);
  120.     TextDrawUseBox(Textdraw [ 3 ], 1);
  121.     TextDrawBoxColor(Textdraw [ 3 ], 255);
  122.     TextDrawTextSize(Textdraw [ 3 ], 169.000000, 15.000000);
  123.     TextDrawSetSelectable(Textdraw [ 3 ], 1);
  124.  
  125.     Textdraw [ 4 ] = TextDrawCreate(80.000000, 221.000000, "FS Laden");
  126.     TextDrawBackgroundColor(Textdraw [ 4 ], 255);
  127.     TextDrawFont(Textdraw [ 4 ], 1);
  128.     TextDrawLetterSize(Textdraw [ 4 ], 0.310000, 2.000000);
  129.     TextDrawColor(Textdraw [ 4 ], -1);
  130.     TextDrawSetOutline(Textdraw [ 4 ], 0);
  131.     TextDrawSetProportional(Textdraw [ 4 ], 1);
  132.     TextDrawSetShadow(Textdraw [ 4 ], 1);
  133.     TextDrawUseBox(Textdraw [ 4 ], 1);
  134.     TextDrawBoxColor(Textdraw [ 4 ], 255);
  135.     TextDrawTextSize(Textdraw [ 4 ], 169.000000, 15.000000);
  136.     TextDrawSetSelectable(Textdraw [ 4 ], 1);
  137.  
  138.     Textdraw [ 5 ] = TextDrawCreate(80.000000, 270.000000, "FS Entladen");
  139.     TextDrawBackgroundColor(Textdraw [ 5 ], 255);
  140.     TextDrawFont(Textdraw [ 5 ], 1);
  141.     TextDrawLetterSize(Textdraw [ 5 ], 0.310000, 2.000000);
  142.     TextDrawColor(Textdraw [ 5 ], -1);
  143.     TextDrawSetOutline(Textdraw [ 5 ], 0);
  144.     TextDrawSetProportional(Textdraw [ 5 ], 1);
  145.     TextDrawSetShadow(Textdraw [ 5 ], 1);
  146.     TextDrawUseBox(Textdraw [ 5 ], 1);
  147.     TextDrawBoxColor(Textdraw [ 5 ], 255);
  148.     TextDrawTextSize(Textdraw [ 5 ], 169.000000, 15.000000);
  149.     TextDrawSetSelectable(Textdraw [ 5 ], 1);
  150.  
  151.     Textdraw [ 6 ] = TextDrawCreate(470.000000, 270.000000, "Nachricht an Alle");
  152.     TextDrawBackgroundColor(Textdraw [ 6 ], 255);
  153.     TextDrawFont(Textdraw [ 6 ], 1);
  154.     TextDrawLetterSize(Textdraw [ 6 ], 0.310000, 2.000000);
  155.     TextDrawColor(Textdraw [ 6 ], -1);
  156.     TextDrawSetOutline(Textdraw [ 6 ], 0);
  157.     TextDrawSetProportional(Textdraw [ 6 ], 1);
  158.     TextDrawSetShadow(Textdraw [ 6 ], 1);
  159.     TextDrawUseBox(Textdraw [ 6 ], 1);
  160.     TextDrawBoxColor(Textdraw [ 6 ], 255);
  161.     TextDrawTextSize(Textdraw [ 6 ], 558.000000, 15.000000);
  162.     TextDrawSetSelectable(Textdraw [ 6 ], 1);
  163.  
  164.     Textdraw [ 7 ] = TextDrawCreate(470.000000, 221.000000, "Uhrzeit einstellen");
  165.     TextDrawBackgroundColor(Textdraw [ 7 ], 255);
  166.     TextDrawFont(Textdraw [ 7 ], 1);
  167.     TextDrawLetterSize(Textdraw [ 7 ], 0.310000, 2.000000);
  168.     TextDrawColor(Textdraw [ 7 ], -1);
  169.     TextDrawSetOutline(Textdraw [ 7 ], 0);
  170.     TextDrawSetProportional(Textdraw [ 7 ], 1);
  171.     TextDrawSetShadow(Textdraw [ 7 ], 1);
  172.     TextDrawUseBox(Textdraw [ 7 ], 1);
  173.     TextDrawBoxColor(Textdraw [ 7 ], 255);
  174.     TextDrawTextSize(Textdraw [ 7 ], 558.000000, 15.000000);
  175.     TextDrawSetSelectable(Textdraw [ 7 ], 1);
  176.  
  177.     Textdraw [ 8 ] = TextDrawCreate(470.000000, 171.000000, "..:V.1:..");
  178.     TextDrawBackgroundColor(Textdraw [ 8 ], 255);
  179.     TextDrawFont(Textdraw [ 8 ], 1);
  180.     TextDrawLetterSize(Textdraw [ 8 ], 0.310000, 2.000000);
  181.     TextDrawColor(Textdraw [ 8 ], -1);
  182.     TextDrawSetOutline(Textdraw [ 8 ], 0);
  183.     TextDrawSetProportional(Textdraw [ 8 ], 1);
  184.     TextDrawSetShadow(Textdraw [ 8 ], 1);
  185.     TextDrawUseBox(Textdraw [ 8 ], 1);
  186.     TextDrawBoxColor(Textdraw [ 8 ], 255);
  187.     TextDrawTextSize(Textdraw [ 8 ], 558.000000, 15.000000);
  188.    
  189.     Textdraw [ 9 ] = TextDrawCreate(470.000000, 121.000000, "..:V.1:..");
  190.     TextDrawBackgroundColor(Textdraw [ 9 ], 255);
  191.     TextDrawFont(Textdraw [ 9 ], 1);
  192.     TextDrawLetterSize(Textdraw [ 9 ], 0.310000, 2.000000);
  193.     TextDrawColor(Textdraw [ 9 ], -1);
  194.     TextDrawSetOutline(Textdraw [ 9 ], 0);
  195.     TextDrawSetProportional(Textdraw [ 9 ], 1);
  196.     TextDrawSetShadow(Textdraw [ 9 ], 1);
  197.     TextDrawUseBox(Textdraw [ 9 ], 1);
  198.     TextDrawBoxColor(Textdraw [ 9 ], 255);
  199.     TextDrawTextSize(Textdraw [ 9 ], 558.000000, 15.000000);
  200.  
  201.     Textdraw [ 10 ] = TextDrawCreate(284.000000, 218.000000, "~b~Erstellt durch: ~g~Msk~r~.");
  202.     TextDrawBackgroundColor(Textdraw [ 10 ], 255);
  203.     TextDrawFont(Textdraw [ 10 ], 1);
  204.     TextDrawLetterSize(Textdraw [ 10 ], 0.200000, 1.599999);
  205.     TextDrawColor(Textdraw [ 10 ], -1);
  206.     TextDrawSetOutline(Textdraw [ 10 ], 0);
  207.     TextDrawSetProportional(Textdraw [ 10 ], 1);
  208.     TextDrawSetShadow(Textdraw [ 10 ], 1);
  209.  
  210.     Textdraw [ 11 ] = TextDrawCreate(268.000000, 230.000000, "................");
  211.     TextDrawBackgroundColor(Textdraw [ 11 ], 255);
  212.     TextDrawFont(Textdraw [ 11 ], 1);
  213.     TextDrawLetterSize(Textdraw [ 11 ], 0.500000, 1.000000);
  214.     TextDrawColor(Textdraw [ 11 ], -1);
  215.     TextDrawSetOutline(Textdraw [ 11 ], 0);
  216.     TextDrawSetProportional(Textdraw [ 11 ], 1);
  217.     TextDrawSetShadow(Textdraw [ 11 ], 1);
  218.  
  219.     Textdraw [ 12 ] = TextDrawCreate(266.000000, 204.000000, "~n~.~n~.");
  220.     TextDrawBackgroundColor(Textdraw [ 12 ] , 255);
  221.     TextDrawFont(Textdraw [ 12 ] , 1);
  222.     TextDrawLetterSize(Textdraw [ 12 ] , 0.500000, 1.000000);
  223.     TextDrawColor(Textdraw [ 12 ] , -1);
  224.     TextDrawSetOutline(Textdraw [ 12 ] , 0);
  225.     TextDrawSetProportional(Textdraw [ 12 ] , 1);
  226.     TextDrawSetShadow(Textdraw [ 12 ] , 1);
  227.  
  228.     Textdraw [ 13 ]  = TextDrawCreate(359.000000, 204.000000, "~n~.~n~.");
  229.     TextDrawBackgroundColor(Textdraw [ 13 ], 255);
  230.     TextDrawFont(Textdraw [ 13 ], 1);
  231.     TextDrawLetterSize(Textdraw [ 13 ], 0.500000, 1.000000);
  232.     TextDrawColor(Textdraw [ 13 ], -1);
  233.     TextDrawSetOutline(Textdraw [ 13 ], 0);
  234.     TextDrawSetProportional(Textdraw [ 13 ], 1);
  235.     TextDrawSetShadow(Textdraw [ 13 ], 1);
  236.  
  237.     Textdraw [ 14 ] = TextDrawCreate(268.000000, 208.000000, "................");
  238.     TextDrawBackgroundColor(Textdraw [ 14 ], 255);
  239.     TextDrawFont(Textdraw [ 14 ], 1);
  240.     TextDrawLetterSize(Textdraw [ 14 ], 0.500000, 1.000000);
  241.     TextDrawColor(Textdraw [ 14 ], -1);
  242.     TextDrawSetOutline(Textdraw [ 14 ], 0);
  243.     TextDrawSetProportional(Textdraw [ 14 ], 1);
  244.     TextDrawSetShadow(Textdraw [ 14 ], 1);
  245.  
  246.     Textdraw [ 15 ] = TextDrawCreate(282.000000, 340.000000, "Beenden");
  247.     TextDrawBackgroundColor(Textdraw [ 15 ], 255);
  248.     TextDrawFont(Textdraw [ 15 ], 1);
  249.     TextDrawLetterSize(Textdraw [ 15 ], 0.500000, 2.400000);
  250.     TextDrawColor(Textdraw [ 15 ], -1);
  251.     TextDrawSetOutline(Textdraw [ 15 ], 0);
  252.     TextDrawSetProportional(Textdraw [ 15 ], 1);
  253.     TextDrawSetShadow(Textdraw [ 15 ], 1);
  254.     TextDrawUseBox(Textdraw [ 15 ], 1);
  255.     TextDrawBoxColor(Textdraw [ 15 ], 255);
  256.     TextDrawTextSize(Textdraw [ 15 ], 350.000000, 15.000000);
  257.     TextDrawSetSelectable(Textdraw [ 15 ], 1);
  258.     return 1;
  259. }
  260.  
  261. public OnFilterScriptExit()
  262. {
  263.     for ( new x = 0; x < 16; x++ ) {
  264.         TextDrawDestroy ( Textdraw [ x ] ); }
  265.     return 1;
  266. }
  267. stock HideAll(playerid)
  268. {
  269.     for ( new x = 0; x < 16; x++ ) {
  270.         TextDrawHideForPlayer ( playerid, Textdraw [ x ] ); }
  271.     PlayerPlaySound ( playerid, 1098, 0, 0, 0 );
  272.     CancelSelectTextDraw ( playerid );
  273.     return 1;
  274. }
  275. stock ShowAll(playerid)
  276. {
  277.     for ( new x = 0; x < 16; x++ ) {
  278.         TextDrawShowForPlayer ( playerid, Textdraw [ x ] ); }
  279.     PlayerPlaySound ( playerid, 1097, 0, 0, 0 );
  280.     SelectTextDraw ( playerid, 0xFF0005FF );
  281.     return 1;
  282. }
  283. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  284. {
  285.     if ( clickedid == Textdraw [ 2 ] ) {
  286.         HideAll ( playerid );
  287.         ShowPlayerDialog ( playerid, D_GMN ,DIALOG_STYLE_INPUT,"Gamemode Name","{FFFFFF}\n\n\nTrage unten den gewünschten Gamemode Namen ein:","Fertig","Abbrechen" );
  288.     } if ( clickedid == Textdraw [ 3 ] ) {
  289.         HideAll ( playerid );
  290.         ShowPlayerDialog ( playerid,D_MP, DIALOG_STYLE_INPUT,"Maximaler Ping","{FFFFFF}\n\n\nTrage unten den gewünschten maximalen Ping ein:","Fertig","Abbrechen");
  291.     } if ( clickedid == Textdraw [ 4 ] ) {
  292.         HideAll ( playerid );
  293.         ShowPlayerDialog ( playerid, D_FL, DIALOG_STYLE_INPUT,"Filterscript Laden","{FFFFFF}\n\n\nTrage unten den Namen von dem Filterscript ein den du laden möchtest","Fertig","Abbrechen" );
  294.     } if ( clickedid == Textdraw [ 5 ] ) {
  295.         HideAll ( playerid );
  296.         ShowPlayerDialog ( playerid, D_FEL, DIALOG_STYLE_INPUT,"Filterscript Laden","{FFFFFF}\n\n\nTrage unten den Namen von dem Filterscript ein den du entladen möchtest","Fertig","Abbrechen" );
  297.     } if ( clickedid == Textdraw [ 6 ] ) {
  298.         HideAll  ( playerid );
  299.         ShowPlayerDialog ( playerid, D_NAL, DIALOG_STYLE_INPUT," Nachricht an Alle","{FFFFFF}\n\n\nTrage unten deine Nachricht ein, die alle sehen werden","Fertig","Abbrechen" );
  300.     } if ( clickedid == Textdraw [ 7 ] ) {
  301.         HideAll ( playerid );
  302.         ShowPlayerDialog ( playerid, D_UZE, DIALOG_STYLE_INPUT," Uhrzeit einstellen","{FFFFFF}\n\n\nTrage unten die gewünschte uhrzeit ein: ","Fertig","Abbrechen" );
  303.     } if ( clickedid == Textdraw [ 15 ] ) {
  304.         HideAll ( playerid );
  305.     }
  306.     return 1;
  307. }
  308. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  309. {
  310.     if ( dialogid == D_GMN && response == 1 ) {
  311.     if ( strlen ( inputtext ) == 0 ) {
  312.         SendClientMessage ( playerid, 0xFFFFFFFF, "Falsche angabe" );
  313.         ShowPlayerDialog ( playerid, D_GMN ,DIALOG_STYLE_INPUT,"Gamemode Name","{FFFFFF}\n\n\nTrage unten den gewünschten Gamemode Namen ein:","Fertig","Abbrechen" ); return 0; }
  314.     SetGameModeText ( inputtext ); SendClientMessage ( playerid, 0xFFFFFFFF, "Erfolgreich" );
  315.     PlayerPlaySound ( playerid, 1057, 0, 0, 0 );
  316.     }
  317.     if ( dialogid == D_MP && response == 1 ) {
  318.         if ( !IsNumeric ( inputtext ) )
  319.             return SendClientMessage ( playerid,0xFFFFFFF,"Du hast ein unerlaubtes zeichen eingetragen" );
  320.         max_ping = strval ( inputtext );
  321.         if ( max_ping < 100 ) { max_ping = 500; ShowPlayerDialog ( playerid,D_MP,DIALOG_STYLE_INPUT,"Maximaler Ping","Der Maximaler Ping muss höher als 100 sein","Fertig","Abbrechen" ); return 0;}
  322.         new str1 [ 222 ];
  323.         format ( str1, 222, "Erfolgreich, Maximaler Ping eingestellt{FF0000}(%d)", max_ping );
  324.         SendClientMessage ( playerid, 0xFFFFFFFF, str1 );
  325.         PlayerPlaySound ( playerid, 1057, 0, 0, 0 );
  326.     }
  327.     if ( dialogid == D_FL && response == 1 ) {
  328.         if ( strlen ( inputtext ) == 0 ) {
  329.             SendClientMessage ( playerid, 0xFFFFFFFFF, "Falsche angabe" );
  330.             ShowPlayerDialog ( playerid, D_FL, DIALOG_STYLE_INPUT,"Filterscript Laden","{FFFFFF}\n\n\nTrage unten den Namen von dem Filterscript ein den du laden möchtest","Fertig","Abbrechen" );
  331.             return 0; }
  332.         new str2 [ 100 ];
  333.         format ( str2 ,100, "loadfs %s", inputtext );
  334.         SendRconCommand ( str2 );
  335.         format ( str2, 100, "Filterscript: %s geladen" ,inputtext );
  336.         SendClientMessage ( playerid, 0xFFFFFFFF, str2 );
  337.     }
  338.     if ( dialogid == D_FEL && response == 1 ) {
  339.         if ( strlen ( inputtext ) == 0 ) {
  340.             SendClientMessage ( playerid, 0xFFFFFFFFF, "Falsche angabe" );
  341.             ShowPlayerDialog ( playerid, D_FEL, DIALOG_STYLE_INPUT,"Filterscript Laden","{FFFFFF}\n\n\nTrage unten den Namen von dem Filterscript ein den du entladen möchtest","Fertig","Abbrechen" );
  342.             return 0; }
  343.         new str2 [ 100 ];
  344.         format ( str2 ,100, "unloadfs %s", inputtext );
  345.         SendRconCommand ( str2 );
  346.         format ( str2, 100, "Filterscript: %s entladet" ,inputtext );
  347.         SendClientMessage ( playerid, 0xFFFFFFFF, str2 );
  348.     }
  349.     if ( dialogid == D_NAL && response == 1 ) {
  350.         if ( strlen ( inputtext ) == 0 ) {
  351.             SendClientMessage ( playerid,0xFFFFFFFF, "Falsche angabe" );
  352.             ShowPlayerDialog ( playerid, D_NAL, DIALOG_STYLE_INPUT," Nachricht an Alle","{FFFFFF}\n\n\nTrage unten deine Nachricht ein, die alle sehen werden","Fertig","Abbrechen" );
  353.             return 0; }
  354.         new str [ 266 ];
  355.         format ( str, 266, "{FF0000}Admin:{FFFFFF} %s",inputtext );
  356.         SendClientMessageToAll ( -1, str );
  357.     }
  358.     if ( dialogid == D_UZE && response == 1  ) {
  359.         if ( !IsNumeric ( inputtext ) )
  360.             return SendClientMessage ( playerid, 0xFFFFFFFF," Falsche angabe" );
  361.         new varr;
  362.         varr = strval ( inputtext );
  363.         if ( varr < 1 || varr > 24 )
  364.             return SendClientMessage ( playerid, 0xFFFFFFFF," Falsche uhrzeit" );
  365.         SetWorldTime ( varr );
  366.         SendClientMessage ( playerid, 0xFFFFFFFF, "Erfolgreich" );
  367.     }
  368.     return 1;
  369. }
  370. stock IsNumeric(const string[])
  371. {
  372.     for (new i = 0, j = strlen(string); i < j; i++)
  373.     {
  374.         if (string[i] > '9' || string[i] < '0') return 0;
  375.     }
  376.     return 1;
  377. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement