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

Point system


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Grinder
New Member
Join Date: Jun 2014
Old 06-14-2014 , 13:04   Point system
Reply With Quote #1

Hy everyone!

someone could write a plugin to me:

Kill: 5 point
HSKill: 7 point
GranadeKill: 10 point

Point shop:

1 Heg (%d pont) cvar set
2 Flash
3 smoke
4 boost of speed (15 sec)
5 small gravity (15 sec)
6 invisibility (15 sec)
7 respawn
8 immortality (1 round)

9 next

1 Usp (1 bullet)
2 Deagle (1 bullet)
3 MP5 (1 bullet)
4 famas (1 bullet)
5 M4A1 (1 bullet)
6 Scout (2 bullet)
7 AWP (1 bullet)
8 50 point (16000$)


And show hud how many pont

[Points:%d]
Save a file NO SQL
Save the name or enter into the plugin register system /reg
but if you do then you should get into the registration system is sql

Last edited by Grinder; 06-15-2014 at 03:20.
Grinder is offline
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 06-14-2014 , 14:58   Re: Point system
Reply With Quote #2

Be more SPECIFIC
__________________
BLacking98 is offline
Grinder
New Member
Join Date: Jun 2014
Old 06-15-2014 , 03:20   Re: Point system
Reply With Quote #3

Quote:
Originally Posted by BLacking98 View Post
Be more SPECIFIC
edit
Grinder is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 06-15-2014 , 03:54   Re: Point system
Reply With Quote #4

Why saving by Name and not SteamID?
__________________
Kia is offline
Grinder
New Member
Join Date: Jun 2014
Old 06-15-2014 , 05:47   Re: Point system
Reply With Quote #5

Quote:
Originally Posted by Kia View Post
Why saving by Name and not SteamID?
More player STEAM_ID_LAN
Grinder is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 06-15-2014 , 05:48   Re: Point system
Reply With Quote #6

Quote:
Originally Posted by Grinder View Post
More player STEAM_ID_LAN
Then remove DProto / set sv_lan 0.
__________________
Kia is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-15-2014 , 14:51   Re: Point system
Reply With Quote #7

Finally did it! Phew...
Okay, now to explain. Everything you wanted is there. The cvars for the prices of each item are simple.
Each of them has the same structure but only one keyword is different. The structure is:
PHP Code:
shop_%s_cost 
where you should replace %s with the following keywords for the current items:
PHP Code:
hegrenade
flashbang
smokegrenade
speed
gravity
invis
respawn
immortality
usp
deagle
mp5navy
famas
m4a1
scout
awp
points 
Each cost if defaultly 20, but you can easily change it. Only the price of the points is 16000$ and is in money, while the other prices are in points.
The code is attached and I hope you will enjoy it.
Attached Files
File Type: sma Get Plugin or Get Source (ShopRequest.sma - 675 views - 6.7 KB)
__________________

Last edited by Flick3rR; 06-15-2014 at 14:52.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-15-2014 , 14:57   Re: Point system
Reply With Quote #8

You should get the speed with a pointer, default speed may be different from server to server. Also, use nvault_close in plugin_end.

Make a global task in plugin_init with flag b and loop all players, instead of making an individual task for every player.

Last edited by HamletEagle; 06-15-2014 at 14:58.
HamletEagle is online now
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-15-2014 , 15:05   Re: Point system
Reply With Quote #9

First of all, DAFUQ?!


What kind of sorcery is this?!

OP: All the improvements will be done! Thanks.
EDIT: Uhm... Was that the right cvar?
PHP Code:
normal_speed float(get_cvar_pointer("sv_maxspeed")) 
__________________

Last edited by Flick3rR; 06-15-2014 at 15:13.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-15-2014 , 17:47   Re: Point system
Reply With Quote #10



The weaponid csw_ are integers not strings.
__________________

Last edited by Blizzard_87; 06-15-2014 at 17:49.
Blizzard_87 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 03:54.


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