Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
OciXCrom committed Oct 19, 2017
1 parent f988ef2 commit 8c819a2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripting/cshop_items.sma
Expand Up @@ -12,7 +12,7 @@
#include <fun>
#include <hamsandwich>
#define PLUGIN_VERSION "4.1+"
#define PLUGIN_VERSION "4.2"
#define TASK_HEALTHREGEN 400040
#define TASK_ARMORREGEN 400140
#define m_pActiveItem 373
Expand Down Expand Up @@ -244,6 +244,9 @@ public cshop_item_removed(id, iItem)
public OnPlayerResetMaxSpeed(id)
{
if(!is_user_alive(id))
return
if(g_bHasItem[id][DEFAULT_ITEMS[ITEM_DRUGS]])
set_user_maxspeed(id, g_eSettings[Drugs_Speed_Add] ? get_user_maxspeed(id) + g_eSettings[Drugs_Speed] : g_eSettings[Drugs_Speed])
else if(g_bHasItem[id][DEFAULT_ITEMS[ITEM_SPEED]])
Expand All @@ -252,6 +255,9 @@ public OnPlayerResetMaxSpeed(id)
public OnChangeWeapon(id)
{
if(!is_user_alive(id))
return
if(g_bHasItem[id][DEFAULT_ITEMS[ITEM_UNLCLIP]])
{
new iWeapon = read_data(2)
Expand Down Expand Up @@ -354,4 +360,4 @@ set_user_drugs(id, iAmount)
message_begin(MSG_ONE, g_iSetFOV, {0, 0, 0}, id)
write_byte(iAmount)
message_end()
}
}

0 comments on commit 8c819a2

Please sign in to comment.