Advertisement
Guest User

Cykotitan

a guest
May 19th, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. function isHeldShield(cid)
  2.     local t = {getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid, getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid}
  3.  
  4.     return (t[1] ~= 0 and getItemInfo(t[1]).weaponType == WEAPON_SHIELD)
  5.         or (t[2] ~= 0 and getItemInfo(t[2]).weaponType == WEAPON_SHIELD)
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement