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

Hey! Need help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Neyko
Junior Member
Join Date: Jun 2016
Location: Sweden/Germany/Albania
Old 06-26-2016 , 06:46   Hey! Need help!
Reply With Quote #1

Hey guys, So I'm new to this Sourcemod language and ive been wondering if theres a list of all "statements" you can use while scripting... Right now I have a problem where I want the plugin to print out a command to the server

PrintToServer()

It doesn't really work, just prints out the message I typed -_-
so is there like an actuall thing like

PrintToServerCommand()

Cuz I cant see that ^ when I use the defined language in Notepad++ :/
Please someone help me! Ily all <3

:wi nk:
Neyko is offline
Jakeey802
Senior Member
Join Date: Oct 2015
Old 06-26-2016 , 08:26   Re: Hey! Need help!
Reply With Quote #2

Quote:
Originally Posted by Neyko View Post
ive been wondering if theres a list of all "statements" you can use while scripting...
https://sm.alliedmods.net/new-api/
Jakeey802 is offline
Neyko
Junior Member
Join Date: Jun 2016
Location: Sweden/Germany/Albania
Old 06-26-2016 , 14:22   Re: Hey! Need help!
Reply With Quote #3

Quote:
Originally Posted by Jakeey802 View Post


Thanks dude! I found the function "ServerCommand" and it says that it is supposed to execute server commands but I don't know how to use it really, can someone help me? Is there an example of another command for printing commands to the server that gets executed?

Last edited by Neyko; 06-26-2016 at 15:26.
Neyko is offline
Simon4313
Junior Member
Join Date: Jan 2016
Old 06-26-2016 , 18:02   Re: Hey! Need help!
Reply With Quote #4

example


PHP Code:
ServerCommand("sm_slap"

Last edited by Simon4313; 06-26-2016 at 18:03.
Simon4313 is offline
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 06-27-2016 , 00:36   Re: Hey! Need help!
Reply With Quote #5

simon forgot the semicolon, but just look at the thousands of other plugins already released and read over their code! You/this should be in the scripting section on the forum.
hamilton5 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 00:27.


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