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

Pistol Rounds


Post New Thread Reply   
 
Thread Tools Display Modes
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-03-2009 , 11:20   Re: Pistol Rounds
Reply With Quote #11

Nice plugin I guess... But I'd still suggest to put at least one CVAR which controls whether the plugin is enabled or disabled.
__________________
hleV is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-03-2009 , 11:59   Re: Pistol Rounds
Reply With Quote #12

Or a command, that way you can simply [dis/en]able the forward.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
thatguyzp
Junior Member
Join Date: Mar 2009
Old 03-03-2009 , 13:07   Re: Pistol Rounds
Reply With Quote #13

CVAR added, for people that only want to use it sometimes.
thatguyzp is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-03-2009 , 14:28   Re: Pistol Rounds
Reply With Quote #14

Change the

PHP Code:
#define PLUGINNAME "Pistol Rounds" 
To

PHP Code:
#define PLUGINNAME "Pistol Rounds" 
Else it doesnt compile

I suppose you know it
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Old 03-03-2009, 15:18
thatguyzp
This message has been deleted by thatguyzp.
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-03-2009 , 16:17   Re: Pistol Rounds
Reply With Quote #15

I don't know why it isn't showing for you, but it is on the forums, too.
If you try to use "Get Plugin", then it has a compile error because of it.

Also, you should use pcvars.
Attached Files
File Type: sma Get Plugin or Get Source (pistolrounds.sma - 658 views - 1.0 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
thatguyzp
Junior Member
Join Date: Mar 2009
Old 03-03-2009 , 17:42   Re: Pistol Rounds
Reply With Quote #16

Uploaded a new sma file, apparently I saved it as a wrong format. Let me know if those random characters are still there.

Also let me know if I did the pcvars right.

Thanks.
thatguyzp is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-03-2009 , 18:25   Re: Pistol Rounds
Reply With Quote #17

Quote:
Originally Posted by thatguyzp View Post
Uploaded a new sma file, apparently I saved it as a wrong format. Let me know if those random characters are still there.

Also let me know if I did the pcvars right.

Thanks.
Nice, the random characters are gone.

Also, you did the pcvars correctly, which surprised me because all other beginners who try pcvars don't understand them or use them incorrectly.
Good job!
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Jay-izi
Senior Member
Join Date: Mar 2008
Location: Estonia Tallinn
Old 03-03-2009 , 18:31   Re: Pistol Rounds
Reply With Quote #18

thatguyzp, good job. Your plugin must work correctly now.

Exolent[jNr], When I started to write plugins, I didn't understand pcvar too.
(I don't know why all beginners (or the most of them) use pcvar first time incorrecly)
__________________

Jay-izi is offline
Send a message via ICQ to Jay-izi Send a message via MSN to Jay-izi Send a message via Skype™ to Jay-izi
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-03-2009 , 19:07   Re: Pistol Rounds
Reply With Quote #19

Quote:
Originally Posted by thatguyzp View Post
Looks fine on my end.
Those three characters () are the Byte-order Mark for a UTF-8 file. If you are viewing it as a UTF-8 file you will not see them. If you are viewing it as a ANSI file you will see them as plain text. To avoid this always encode your file as ANSI (also, it seems that UTF-8 w/o BOM works also).

I believe that most "good" source code editors (I use Notepad++) have an option to convert between encodings.
__________________
fysiks is offline
Plug me up
Member
Join Date: Aug 2008
Old 03-04-2009 , 18:45   Re: Pistol Rounds
Reply With Quote #20

Great idea! But so to be sure: The plugin prevents players from buying another weapons or the 800 money just do that?

Good look with your new plugin, seems cool =D
__________________
always +karma to thoose who helps
Plug me up is offline
Reply


Thread Tools
Display Modes

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 20:49.


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