Skip to content

Commit

Permalink
fixed driveby weapons, fixed put-away-item--duplication, updated YSI …
Browse files Browse the repository at this point in the history
…link
  • Loading branch information
Southclaws committed Jan 17, 2017
1 parent 4f3cc61 commit a36719f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gamemodes/ScavengeSurvive.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public OnGameModeInit()

#include <crashdetect> // By Zeex https://github.com/Zeex/samp-plugin-crashdetect
#include <sscanf2> // By Y_Less: https://github.com/maddinat0r/sscanf
#include <YSI\y_utils> // By Y_Less, 4: https://github.com/Southclaws/YSI-4.0
#include <YSI\y_utils> // By Y_Less, 4: https://github.com/Misiur/YSI-Includes
#include <YSI\y_va>
#include <YSI\y_timers>
#include <YSI\y_hooks>
Expand Down
3 changes: 3 additions & 0 deletions gamemodes/sss/core/char/backpack.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ stock AddItemToPlayer(playerid, itemid, useinventory = false, playeraction = tru
if(useinventory)
required = AddItemToInventory(playerid, itemid);

if(required == 0)
return 0;

if(!IsValidItem(bag_PlayerBagID[playerid]))
{
if(required > 0)
Expand Down
2 changes: 1 addition & 1 deletion gamemodes/sss/core/vehicle/core.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ PlayerVehicleUpdate(playerid)
PlayerTextDrawShow(playerid, veh_DamageUI[playerid]);
PlayerTextDrawShow(playerid, veh_EngineUI[playerid]);

if(IsWeaponDriveby(GetPlayerWeapon(playerid)))
if(IsBaseWeaponDriveby(GetPlayerWeapon(playerid)))
{
if(GetTickCountDifference(GetTickCount(), GetPlayerVehicleExitTick(playerid)) > 3000 && playerstate == PLAYER_STATE_DRIVER)
SetPlayerArmedWeapon(playerid, 0);
Expand Down
1 change: 0 additions & 1 deletion gamemodes/sss/core/world/defences.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,6 @@ timer MoveDefence[1500](itemid, playerid)

new
ItemType:itemtype = GetItemType(itemid),
objectid = GetItemObjectID(itemid),
Float:rx,
Float:ry,
Float:rz,
Expand Down
2 changes: 0 additions & 2 deletions gamemodes/sss/core/world/tent.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ hook OnPlayerPickUpItem(playerid, itemid)

hook OnPlayerUseItemWithItem(playerid, itemid, withitemid)
{
dbg("global", CORE, "[OnPlayerUseItemWithItem] in /gamemodes/sss/core/item/tentpack.pwn");

if(GetItemType(withitemid) == item_TentPack)
{
new tentid = GetItemArrayDataAtCell(withitemid, 0);
Expand Down

0 comments on commit a36719f

Please sign in to comment.