Jump to content

outputChatBox help


Recommended Posts

Hello i privatize some clans in my spawn, put a warning for those who are not part of Clan:

outputChatBox ("You're not part of the clan KEA" theplayer, 255, 0, 0) 

Part of "KEA" is changed to the name of each clan. the problem is that the message of all clans example when I press the button "spawn" appears:

You're not part of the clan KEA

You're not part of the clan KEA

You're part of iOS clan

You're part of iOS clan

You're part of iOS clan

You're not part of the clan TPK

You're not part of the clan TPK

You're not part of the clan WZ

You're not part of the clan ESP

You're not part of the clan LC

You're not part of the clan NOVA

You're not part of the clan DF

You're not part of the clan MK

You're not part of the clan LN

You're not part of the clan TKF

You're not part of the clan PDT

You're not part of the clan GOW

You're not part of the clan DOF

You're not part of the clan GpS

You're not part of the clan Hunter

You're not part of the clan HH

You're Administrator.

You're Moderator.

and even if you are of the same clan when you appear out all that

as an achievement to make that message only comes out depends on the clan bone

KEA Clan: No clan are part of KEA and KEA only this message appears, and only those who are not clan

Link to comment
Where the code?
function spawnKEA( cityName, teamName, skinName )    
     if ( getElementData(source, "gang") == "KEA" ) and 
       ( teamName == "KEA" and skinName == "KEA 1" ) then 
 setPlayerTeam ( source, teamKEA) 
       local x,y,z 
       x = 731.79998779297 
       y = -1276.0999755859 
       z = 13.60000038147 
         spawnPlayer ( source, x,y,z  ) 
         outputChatBox("YOU HAVE JOINED TO: Kill 'Em All[KEA] CLAN!", source, 0, 255, 0) 
       fadeCamera(source, true) 
    giveWeapon ( source, 28, 2000 ) 
    giveWeapon ( source, 31, 2000 ) 
    giveWeapon ( source, 27, 2000 ) 
setElementHealth ( source, 100 ) 
         setElementModel ( source,15 ) 
     setPedArmor ( source, 0 ) 
    else 
    outputChatBox("You're not part of the clan KEA", thePlayer, 255, 0, 0) 
   triggerClientEvent ( "onPlayerChooseTeam", getRootElement(), teamName ) 
       end 
    end 

Link to comment

I guess you have used same event name for the trigger from client to server, that's why. Also thePlayer is not defined.

And here your trigger is to all players in the server, not sure but i guess it suppose to be only for one player?

triggerClientEvent ( "onPlayerChooseTeam", getRootElement(), teamName ) 

Link to comment
I guess you have used same event name for the trigger from client to server, that's why. Also thePlayer is not defined.

And here your trigger is to all players in the server, not sure but i guess it suppose to be only for one player?

triggerClientEvent ( "onPlayerChooseTeam", getRootElement(), teamName ) 

Yeah, I know what the problem is, but I should use? I'm learning and I do not understand some things.thanks.

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