Jump to content

[REL]Chatting With Money 1.0.0


Micro

Recommended Posts

Chatting With Money

http://www.fpsserver.com

FPSSERVER TEAM

----------------------

By : Micro

Version: 1.0.0

Image:

9543.png

----------------------

Description |EN| :

Chatting with Money - Any One Say In Chat He is lose 200$

If the player not have 200$ he cantsay in chat

------------------------------------------------------------

Description |AR| :

هدة المود يحد من تكلم في شات فأي شخص يقوم بتحدت يقوم بخصم من ماله 200

وان لم يكن يمتلك المال فلن يتمكن من تحدت في شات

يرجى قبل تحميله ان يكون لديك نظام الحصول على المال

-----------------------------------------------------------

Download : https://community.multitheftauto.com/ind ... ls&id=6103

Thank You! For Rated the Mod

Link to comment
root = getRootElement() 
  
  
function chat (msg , msgty,player) 
money  = getPlayerMoney(source) 
a = money < 200 
if msg and a then 
cancelEvent() 
outputChatBox(" You Dont Have 200$ To Chatting",player,255,0,0) 
else 
take = 200 
a = money >= 200 
if msg and a then 
takePlayerMoney(source,take) 
end 
end 
end 
addEventHandler ("onPlayerChat",root,chat) 

root = getRootElement() 

why? it's not needed anymore

function chat (msg , msgty,player) 

What is player? onPlayerChat Event don't have this argument

function chat ( msg , msgty ) 
    local money  = getPlayerMoney ( source ); 
    if msg and tonumber ( money ) < 200 then 
        cancelEvent() 
        outputChatBox ( " You Don't Have 200$ To Chatting ", source, 255, 0, 0 ); 
    else 
        if msg and tonumber ( money ) >= 200 then 
            takePlayerMoney ( source, 200 ); 
        end 
    end 
end 
addEventHandler ( "onPlayerChat", root, chat ) 

will better..

I think that this resource is not needed

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...