Raised This Month: $12 Target: $400
 3% 

Solved [CS:GO] Why RegConsoleCmd Activated Twice?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PunkChop
Junior Member
Join Date: Jul 2018
Old 08-05-2018 , 08:20   [CS:GO] Why RegConsoleCmd Activated Twice?
Reply With Quote #1

PHP Code:

public void OnPluginStart()
{
    
RegConsoleCmd("sm_c"Commend_Cash);
    
RegConsoleCmd("sm_cash"Commend_Cash);
}


public 
Action Commend_Cash(int clientint args)
{
    
PrintToChat(client" \x04[SM]\x01 You Have \x04%d\x01 cash"50); //example

when i write /cash
it's print my cash twice.. anyone know why?

Sloved:

I had two scripts of this in my server

Last edited by PunkChop; 08-06-2018 at 14:03.
PunkChop 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 23:15.


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