Jump to content

Recommended Posts

function preventChatSpam(cmd)
   if cmd == "say"  then 
   if isGuestAccount (getPlayerAccount(source)) then
      cancelEvent()
      outputChatBox("Login First", source, 255, 0, 0, true)
end
end
addEventHandler("onPlayerCommand", root, preventChatSpam)

أيش الغلط ب الكود ؟!

وممكن التصحيح :D

؟ الوو !

Link to comment
54 minutes ago, Taken' said:

function preventChatSpam(cmd)
   if cmd == "say"  then 
   if isGuestAccount (getPlayerAccount(source)) then
      cancelEvent()
      outputChatBox("Login First", source, 255, 0, 0, true)
end
end
addEventHandler("onPlayerCommand", root, preventChatSpam)

أيش الغلط ب الكود ؟!

وممكن التصحيح :D

؟ الوو !

علي حسب كودك اتوقع تبي تسوي لو شخص زاير ما يقدر يتكلم

بس هادي سويها من مود التاجات - وتفضل

Command = {
    ['say']      = true;
}

addEventHandler( 'onPlayerCommand', root, function (cmd)
    sourceAccount = getPlayerAccount ( source )
    if isGuestAccount ( sourceAccount ) then
        if Command [cmd] then
            cancelEvent ()
		 outputChatBox("Login First", source, 255, 0, 0, true)
        end
    end
end
)

 

Link to comment
15 hours ago, Mr.Mostafa said:

علي حسب كودك اتوقع تبي تسوي لو شخص زاير ما يقدر يتكلم

بس هادي سويها من مود التاجات - وتفضل


Command = {
    ['say']      = true;
}

addEventHandler( 'onPlayerCommand', root, function (cmd)
    sourceAccount = getPlayerAccount ( source )
    if isGuestAccount ( sourceAccount ) then
        if Command [cmd] then
            cancelEvent ()
		 outputChatBox("Login First", source, 255, 0, 0, true)
        end
    end
end
)

 

بجربة الان

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...