Advertisement
RoksasNunes

REMOVE_FRAGS

Apr 21st, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. function onSay(cid, words)
  2.  
  3. if getPlayerFrags(cid) <= 0 then return true end
  4.  
  5. if doPlayerRemoveMoney(cid, 10000000) then
  6.     db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
  7.         else
  8.             doPlayerSendTextMessage(cid, 20, "You do not enough money!")
  9.                 return true
  10.             end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement