PleaseScript Posted October 21, 2012 Posted October 21, 2012 Hi guys some Spawn has a type that is to gang the guy in the gang Police ai ta when he dies I put a spawn in a place just for this gang's when the guy dies and this gang is going to spawn q I colokei her Can someone help me thanks
Dev Posted October 21, 2012 Posted October 21, 2012 Err.. what? "First they ignore you, then they laugh at you, then they fight you, then you win." - Mahatma Gandhi (1869-1948)
manve1 Posted October 21, 2012 Posted October 21, 2012 Hi guys some Spawn has a type that is to gangthe guy in the gang Police ai ta when he dies I put a spawn in a place just for this gang's when the guy dies and this gang is going to spawn q I colokei her Can someone help me thanks USE THESE FUNCTIONS: getPlayerTeam, spawnPlayer Looking for tutorials or information? check out: www.simpleask.co.uk
PleaseScript Posted October 21, 2012 Author Posted October 21, 2012 Hi guys some Spawn has a type that is to gangthe guy in the gang Police ai ta when he dies I put a spawn in a place just for this gang's when the guy dies and this gang is going to spawn q I colokei her Can someone help me thanks USE THESE FUNCTIONS: getPlayerTeam, spawnPlayer function SpawnTeam ( thePlayer ) local team = getPlayerTeam ( thePlayer ) if ( getTeamName( team ) == "Policia" ) then spawnPlayer ( thePlayer, 2290.5969238281, 2452.1838378906, 10.8203125 ) end end addEventHandler ( "onPlayerSpawn", SpawnTeam ) ??????????
hassan.k.s.a Posted October 21, 2012 Posted October 21, 2012 function Wasted(player) local team = getTeamFromName("Policia") local pteam = getPlayerTeam(player) if ( pteam == team ) then spawnPlayer (player, 2495.3654785156,-1687.6867675781,13.517179548035, 0,0,0,0,team) end end addEventHandler("onPlayerWasted", root, function() setTimer(Wasted, 1000, 1, source) end ) http://www.h7server.allalla.com/ -- http://qs-server.tk/ -- http://tfbgaming.net
Renkon Posted October 21, 2012 Posted October 21, 2012 function Wasted(player) local team = getTeamFromName("Policia") local pteam = getPlayerTeam(player) if ( pteam == team ) then spawnPlayer (player, 2495.3654785156,-1687.6867675781,13.517179548035, 0,0,0,0,team) end end addEventHandler("onPlayerWasted", root, function() setTimer(Wasted, 1000, 1, source) end ) Somehow that will throw warnings. Instead of setTimer(Wasted, 1000, 1, source) use: local pVar = source setTimer(Wasted, 1000, 1, pVar)
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