Raised This Month: $ Target: $400
 0% 

CS:GO !maps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HelpMeBro
Junior Member
Join Date: May 2017
Old 05-05-2017 , 12:26   CS:GO !maps
Reply With Quote #1

1.Im looking for a plugin for latest maps played on the server, I need a plugin with a comand called !maps, and when you type !maps you can see in chat the latest maps played on server.

Like -> Previous Maps: de_dust2, de_inferno, de_nuke, cs_assault, de_dust.

2.
You can make a plug-in that when you give someone DMG to appear on your "hud", that is, if you want your life to appear red in the chat and if you take it to life with green

Plz help me! Thanks very muck

Last edited by HelpMeBro; 05-05-2017 at 12:29.
HelpMeBro is offline
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 05-05-2017 , 13:54   Re: CS:GO !maps
Reply With Quote #2

Check this: https://forums.alliedmods.net/showpo...18&postcount=3

And Last 5 maps edit by me
PHP Code:
#pragma semicolon 1

#include <sourcemod>

public Plugin:myinfo =
{
    
name "Map History",
    
author "Gweedo",
    
description "Tracks the recently played maps",
    
version "1.0",
    
url "http://www.themrclan.net"
}

new 
Handle:g_MapArray INVALID_HANDLE;

public 
OnPluginStart(){
    
RegAdminCmd("sm_maphistory"Command_HistoryADMFLAG_GENERIC);

    
g_MapArray CreateArray(32);
}

public 
OnMapEnd(){
    new 
String:map[64];
    
GetCurrentMap(map,sizeof(map));
    
PushArrayString(g_MapArray,map);

    if (
GetArraySize(g_MapArray) > 4)
        
RemoveFromArray(g_MapArray,0);
}

public 
OnPluginEnd(){
    
CloseHandle(g_MapArray);
}

public 
Action:Command_History(clientargs){
    if (
args != 0){
        
ReplyToCommand(client"[SM] No arguements for this command");
        return 
Plugin_Handled;
    }

    if (
g_MapArray != INVALID_HANDLE){
        new 
MapArray GetArraySize(g_MapArray)-1;
        new 
MapLabel MapArray+2;
        for (new 
i=0i<=MapArrayi++){
            new 
String:map[64];
            
GetArrayString(g_MapArray,i,map,sizeof(map));
            
PrintToConsole(client"%i. %s"MapLabelmap);
            
MapLabel--;
        }
    }

    new 
String:currentMap[64];
    
GetCurrentMap(currentMap,sizeof(currentMap));
    
PrintToConsole(client"1. %-24s Current map"currentMap);

    return 
Plugin_Handled;

__________________
vortex. is offline
HelpMeBro
Junior Member
Join Date: May 2017
Old 05-05-2017 , 15:09   Re: CS:GO !maps
Reply With Quote #3

I want if you can place the "maps" command and go for any player. I hope he can.
HelpMeBro is offline
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 05-05-2017 , 15:34   Re: CS:GO !maps
Reply With Quote #4

PHP Code:
RegConsoleCmd("sm_maps"Command_History); 
__________________

Last edited by vortex.; 05-05-2017 at 15:34.
vortex. is offline
HelpMeBro
Junior Member
Join Date: May 2017
Old 05-05-2017 , 15:44   Re: CS:GO !maps
Reply With Quote #5

Does it also work if you are a player or have to be an admin? I want them to go to both players and admins, and i have to say in chat "!maps", I hope you understand me. Thank you very much >3
HelpMeBro is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 05-05-2017 , 16:59   Re: CS:GO !maps
Reply With Quote #6

You can do this using GetMapHistory instead of the ArrayList
There's also a default sm_maphistory admin command which does the same thing as the code above.

Try this @OP: https://forums.alliedmods.net/showthread.php?p=2518464

Last edited by headline; 05-05-2017 at 17:03.
headline is offline
HelpMeBro
Junior Member
Join Date: May 2017
Old 05-06-2017 , 02:57   Re: CS:GO !maps
Reply With Quote #7

Thank you so much, but i have 2 problem.

1)
Is there a DMG plugin that shows you when you hit a green enemy or when it hits you with red? A Hud something? Which to show you as to SA: MP Damage?

Lock he is screenshot on the samp, i can put CS:GO? https://gyazo.com/e6ab90207692c25d0b980db41ee12a79

2) I can put in the console one plugins: sm_sank ? I need that plugins, I am edited with mai Sounds.

Thank Very muck !

Last edited by HelpMeBro; 05-06-2017 at 03:04.
HelpMeBro is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode