Fixed ReadMapList not seeing maps in all valveFS paths (
bug 5715, r=asherkin).
4 stock GET_ARG_INT( arg, maxSize=64 )
6 decl String:tempvar[maxSize];
7 GetCmdArg( arg, tempvar, maxSize );
8 return StringToInt( tempvar );
11 public OnPluginStart()
13 RegConsoleCmd( "get_mvps", get_mvps );
14 RegConsoleCmd( "set_mvps", set_mvps );
15 RegConsoleCmd( "get_score", get_score );
16 RegConsoleCmd( "set_score", set_score );
17 RegConsoleCmd( "get_assists", get_assists );
18 RegConsoleCmd( "set_assists", set_assists );
21 public Action:get_mvps( client, argc )
23 ReplyToCommand( client, "Your MVP count is %d", CS_GetMVPCount( client ) );
25 return Plugin_Handled;
28 public Action:set_mvps( client, argc )
30 new count = GET_ARG_INT( 1 );
32 CS_SetMVPCount( client, count );
33 ReplyToCommand( client, "Set your MVP count to %d", count );
35 return Plugin_Handled;
38 public Action:get_score( client, argc )
40 if( GuessSDKVersion() != SOURCE_SDK_CSGO )
42 ReplyToCommand( client, "This command is only intended for CS:GO" );
43 return Plugin_Handled;
46 ReplyToCommand( client, "Your contribution score is %d", CS_GetClientContributionScore( client ) );
48 return Plugin_Handled;
51 public Action:set_score( client, argc )
53 if( GuessSDKVersion() != SOURCE_SDK_CSGO )
55 ReplyToCommand( client, "This command is only intended for CS:GO" );
56 return Plugin_Handled;
59 new count = GET_ARG_INT( 1 );
61 CS_SetClientContributionScore( client, count );
62 ReplyToCommand( client, "Set your contribution score to %d", count );
64 return Plugin_Handled;
67 public Action:get_assists( client, argc )
69 if( GuessSDKVersion() != SOURCE_SDK_CSGO )
71 ReplyToCommand( client, "This command is only intended for CS:GO" );
72 return Plugin_Handled;
75 ReplyToCommand( client, "Your assist count is %d", CS_GetClientAssists( client ) );
77 return Plugin_Handled;
80 public Action:set_assists( client, argc )
82 if( GuessSDKVersion() != SOURCE_SDK_CSGO )
84 ReplyToCommand( client, "This command is only intended for CS:GO" );
85 return Plugin_Handled;
88 new count = GET_ARG_INT( 1 );
90 CS_SetClientAssists( client, count );
91 ReplyToCommand( client, "Set your assist count to %d", count );
93 return Plugin_Handled;