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

Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SoulSteel
Junior Member
Join Date: May 2019
Old 07-09-2019 , 11:45   Help
Reply With Quote #1

Hello everyone i made this
public void OnPluginStart()
{
RegAdminCmd("sm_sayfff", Command_sayfff, ADMFLAG_BAN, "say f");
}
public Action Command_sayfff(int client, int args)
{
PrintToChatAll("f");
}

and its not work someone can help me? if yes thanks you!
and im new to programming in SourcePawn and i know a little bit of java
SoulSteel is offline
farawayf
Senior Member
Join Date: Jan 2019
Old 07-09-2019 , 12:12   Re: Help
Reply With Quote #2

PHP Code:

#include <sourcemod>

#pragma newdecls required

public void OnPluginStart() {
    
RegAdminCmd("sm_sayfff"sayffADMFLAG_BAN);
}

public 
Action sayff(int clientint args) {
    
PrintToChatAll("f");
    
    
/*    OR LIKE THIS
    for(int i = 1; i <= MaxClients; i++) {
        if(IsClientInGame(i)) {
            PrintToChat(i, "f");
        }
    }
    */    
    
return Plugin_Handled;

farawayf is offline
SoulSteel
Junior Member
Join Date: May 2019
Old 07-09-2019 , 13:20   Re: Help
Reply With Quote #3

Thanks you for the help and i want to get help with

public Action Command_say(int client, int args)
{
if(args > 0)
{
ReplyToCommand(client, "\x04[SM] Useage\x07: sm_say <what to say>");
return Plugin_Handled;
}
int GetCmdArgs();
PrintToChatAll("\x07[Admin]" int args);
return Plugin_Handled;
}

too if you can <3
SoulSteel is offline
farawayf
Senior Member
Join Date: Jan 2019
Old 07-09-2019 , 14:05   Re: Help
Reply With Quote #4

PHP Code:
#include <sourcemod>

#pragma newdecls required

public void OnPluginStart() {
    
RegAdminCmd("sm_say"sayADMFLAG_KICK);
}

public 
Action say(int clientint args) {
    if(
args 1) { 
        
ReplyToCommand(client"[SM] Usage: sm_say <text>"); 
        return 
Plugin_Handled
    } 
    
char buffer[192];    
    
GetCmdArgString(buffersizeof(buffer));    
    
PrintToChatAll("\x07[Admin] %s"buffer);    
    return 
Plugin_Handled;  


Last edited by farawayf; 07-09-2019 at 14:07.
farawayf 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 08:14.


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