Vic_RattleHead Posted January 20, 2015 Share Posted January 20, 2015 (edited) I can solve the problem Edited January 20, 2015 by Guest Link to comment
darhal Posted January 20, 2015 Share Posted January 20, 2015 Show the part that in it you spawnKEA Link to comment
Vic_RattleHead Posted January 20, 2015 Author Share Posted January 20, 2015 (edited) I can solve the problem Edited January 20, 2015 by Guest Link to comment
darhal Posted January 20, 2015 Share Posted January 20, 2015 function createteam () teamamKEA = createTeam ( "Kill 'Em All", 255, 0, 0 ) end addEventHandler("onResourceStart", resourceRoot, createteam) function spawnKEA( cityName, teamName, skinName ) if ( teamName == "KEA" and skinName == "KEA 1" ) then if ( getElementData(source, "gang") == "KEA" ) 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("No eres parte del clan KEA", thePlayer, 255, 0, 0) triggerClientEvent ( "onPlayerChooseTeam", getRootElement(), teamName ) end end addEvent("onPlayerChooseTeam", true) addEventHandler("onPlayerChooseTeam", getRootElement(), spawnKEA) Link to comment
Vic_RattleHead Posted January 20, 2015 Author Share Posted January 20, 2015 (edited) I can solve the problem Edited January 20, 2015 by Guest Link to comment
Vic_RattleHead Posted January 20, 2015 Author Share Posted January 20, 2015 No see the line 10 everything is the same but messy Link to comment
darhal Posted January 20, 2015 Share Posted January 20, 2015 This may help getPlayerTeam getTeamName Link to comment
Vic_RattleHead Posted January 20, 2015 Author Share Posted January 20, 2015 This may help getPlayerTeam getTeamName does that have to do with my problem? Link to comment
darhal Posted January 20, 2015 Share Posted January 20, 2015 WhatS the problem i dont understand Link to comment
Vic_RattleHead Posted January 20, 2015 Author Share Posted January 20, 2015 (edited) I can solve the problem Edited January 20, 2015 by Guest Link to comment
darhal Posted January 20, 2015 Share Posted January 20, 2015 Replace line 8 with if ( teamName == "KEA" and skinName == "KEA 1" or skinName == "KEA 3" or skinName == "KEA 3" then Link to comment
Vic_RattleHead Posted January 20, 2015 Author Share Posted January 20, 2015 I can already solve the problem Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now