Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. function GivePlayerItem(playerid, instance, amount)
  2. local slot = checkPlayerItem(playerid, instance);
  3. if slot then
  4. Player[playerid].Items[slot].amount = Player[playerid].Items[slot].amount + amount;
  5. else
  6. table.insert(Player[playerid].Items, { instance = string.upper(instance), amount = amount });
  7. end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement