Quantcast

Jump to content

  • Log In with Steam Sign In
  • Create Account
85 players in 37 servers, 284 users online, 4 recent bans.

Recent Status Updates

  • Photo
      21 Oct
    TheDarkDevilRo3

    can someone help me with a connection issue? when i try to connect into zombie survival i time out and connection failed after 6 retries pops up

    Show comments (1)
  • Photo
      20 Oct
    Veitan

    Coding is:
    50% "how the fuck did I just do that"
    49.9% "lmao i can do that better"
    and .1% "i know what i'm doing"

    Show comments (3)
View All Updates

Recent Topics


Featured Partners












Wanting To Learn Sourcepawn Scripting

- - - - -

  • Please log in to reply
12 replies to this topic

#1
Enigmo

Enigmo

    Registered Users

  • PipPipPipPipPipPipPip
  • 638 posts
  • LocationNSW, Australia
For a while now, I have been wanting to try myself at writing addons for sourcemod. I just don't know where to start. I'm looking for tutorials, advice, tips, any other languages I should know, compilers and how you started learning?.

Edited by Enigmo, August 2 2013 - 07:21 AM.

Posted Image


#2
xafizzle

xafizzle

    Members

  • PipPipPipPipPipPip
  • 493 posts
  • LocationTexas
You'll never get as good of a tutorial for pawn as there is for PHP or other major languages. Although it's based off of C, you don't need to learn C. It's a simple language so it shouldn't take much to learn. Start here: http://wiki.alliedmo..._to_SourcePawn. That's about all you'll really need to get started.

View Postthrill0gy, on July 4 2013 - 08:02 PM, said:

also stop making me download ugly custom shit you neckbeards

Brad said:

thanks somon knows what shit is doin around here suicide get of the horse and stop actin liek a bitch well you are just not girl kind your mom makes good bagels
Posted Image

#3
mccaincracker

mccaincracker

    Retired Leadership



  • 4,544 posts
  • LocationMichigan
dat links broken fizzle

Posted Image

Click the Ninja Below to watch my CSS videos!

#4
BlackEyes

BlackEyes

    HG Veteran

  • 897 posts
  • LocationIllinois
Here is the tutorial:
http://wiki.alliedmo...n_to_SourcePawn

Before you write the mods, you need to get
Source Dedicated Server (srcds) to test your mods
http://www.srcds.com...l&id=1097362093

Then you need to install metamod. SourceMod is a Metamod.
http://wiki.alliedmo..._Metamod:Source

Then SourceMod itself so you have the libraries
http://wiki.alliedmo...lling_SourceMod

To do your coding in SourcePawn, I'd say use the PawnStudio IDE
http://sourceforge.n...cts/pawnstudio/

Edited by BlackEyes, February 17 2013 - 05:51 PM.

My anime list

Recommend me an anime based off of my standards :)

Posted Image



#5
Enigmo

Enigmo

    Registered Users

  • PipPipPipPipPipPipPip
  • 638 posts
  • LocationNSW, Australia
Thanks for the info! Looks good, I'll dive into it when I get home from school.


View PostBlackEyes, on February 17 2013 - 05:49 PM, said:

Before you write the mods, you need to get
Source Dedicated Server (srcds) to test your mods
http://www.srcds.com...l&id=1097362093

Then you need to install metamod. SourceMod is a Metamod.
http://wiki.alliedmo..._Metamod:Source

Then SourceMod itself so you have the libraries
http://wiki.alliedmo...lling_SourceMod

I've setup and installed many SRCDS server, so this is second narture. ;)

Edited by Enigmo, February 17 2013 - 06:39 PM.

Posted Image


#6
Enigmo

Enigmo

    Registered Users

  • PipPipPipPipPipPipPip
  • 638 posts
  • LocationNSW, Australia
I call it, BaconMod! I'm quite happy with myself considering I've never coded a SourceMod plugin until a few hours ago. :P

#include <sourcemod>


public Plugin:myinfo = {
name = "Bacon",
author = "Enigmo",
description = "Share your love of bacon with everyone.",
version = "1.0",
url = "www.enigmo.co"
}

public OnPluginStart(){
RegAdminCmd("sm_bacon", commandBacon, ADMFLAG_SLAY, "Tell everyone how much you love bacon.");
}


public Action:commandBacon(client, args){
if(args < 1){
  PrintToConsole(client, "[BaconMod] You need to tell everyone how crispy you like your bacon!");
  PrintToConsole(client, "[BaconMod] Usage: sm_bacon <crispyness>");
  PrintToChat(client, "[BaconMod] You need to tell everyone why you love bacon so much!");
  PrintToChat(client, "[BaconMod] Usage: !bacon \"crispyness\"");
  return Plugin_Handled;
}

new String:Arg1[32], String:userName[32];

GetCmdArg(1, Arg1, sizeof(Arg1));
GetClientName(client, userName, sizeof(userName));

PrintToChatAll("[BaconMod] %s loves their bacon %s", userName, Arg1);

return Plugin_Handled;
}

Posted Image


#7
Sonick

Sonick

    Friend of HG

  • PipPipPipPipPipPipPipPip
  • 972 posts
  • LocationPensacola, FL
Anything involving bacon is win!
Former TF2 Advisor

#8
suman

suman

    Newbie

  • Pip
  • 1 posts
Try reversing your if statement so that the first statement is the header change. As Enigma stated, outputting crap outside of php tags can cause the buffer to be sent. As such, you cannot modify the headers. Use ob_start too, again as Enigma suggested.
Sign up with Pass4sure Exams for getting incredible online EMC courses exam and Princeton University. We also provide best examsheets.com and wikipedia with guaranteed success.

#9
Guest_The_Monkey

Guest_The_Monkey

View Postsuman, on August 2 2013 - 04:47 AM, said:

Try reversing your if statement so that the first statement is the header change. As Enigma stated, outputting crap outside of php tags can cause the buffer to be sent. As such, you cannot modify the headers. Use ob_start too, again as Enigma suggested.

LOL what.

#10
Vootermoon

Vootermoon

    HG Veteran

  • 746 posts

View Postsuman, on August 2 2013 - 04:47 AM, said:

Try reversing your if statement so that the first statement is the header change. As Enigma stated, outputting crap outside of php tags can cause the buffer to be sent. As such, you cannot modify the headers. Use ob_start too, again as Enigma suggested.


Posted Image
lols:
Prius lol:
http://www.legit-pro...AM_0:0:25886657


Green lol:


#11
enigma#

enigma#

    HG Veteran



  • 4,540 posts
I said what?

#12
Enigmo

Enigmo

    Registered Users

  • PipPipPipPipPipPipPip
  • 638 posts
  • LocationNSW, Australia

View PostThe_Monkey, on August 2 2013 - 06:16 AM, said:

LOL what.

My exact reaction.

Posted Image


#13
Papa John

Papa John

    Registered Users

  • PipPipPipPipPipPipPipPipPipPip
  • 2,002 posts
  • LocationPizza Land

View Postsuman, on August 2 2013 - 04:47 AM, said:

Try reversing your if statement so that the first statement is the header change. As Enigma stated, outputting crap outside of php tags can cause the buffer to be sent. As such, you cannot modify the headers. Use ob_start too, again as Enigma suggested.

Which conversation are you apart of exactly? Because it isn't this one.

On topic, the crispyness parameter for the bacon command isn't sanitized to prevent unwanted input, therefor the plugin is inherently flawed. I will not be distributing my love of bacon to the masses using this plugin as a result.

Edited by Papa John, August 2 2013 - 08:09 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users