Fantanic Posted November 22, 2013 Posted November 22, 2013 Hello , Is there anyway if u spawn 'Admin' that u are in the class admin and not in the team admin?
Fantanic Posted November 23, 2013 Author Posted November 23, 2013 Is there anyway if u spawn 'Admin' that u are in the class admin and not in the team admin? I did? better explaination maybe ; Now if u spawn as 'Admin' then u are in the Team Admin. I would like to have it so if u spawn 'Admin' that u are in the CLASS Admin and not Team
tosfera Posted November 23, 2013 Posted November 23, 2013 Class is an elementData ( as far as I know ), you should set the players data. setElementData
Fantanic Posted November 23, 2013 Author Posted November 23, 2013 Class is an elementData ( as far as I know ), you should set the players data. setElementData So this has to be added setElementData(hitPlayer, "Class") ? And where exactlY?
Fantanic Posted December 12, 2013 Author Posted December 12, 2013 if spawn then if not class.team then class.team = createTeam( class.name, class.color.red, class.color.green, class.color.blue ); end local plrTeam = getPlayerTeam( client ); if ( ( plrTeam ) and ( plrTeam ~= class.team ) and ( countPlayersInTeam( plrTeam ) == 1 ) ) then destroyElement( plrTeam ); end spawned = spawnPlayer( client, skin.spawnLoc.x, skin.spawnLoc.y, skin.spawnLoc.z, skin.spawnLoc.rot, skin.modelId, 0, 0, class.team ); end if spawned then setElementData( client, "class", class.name ) setElementData( client, "skin", skin.name ) fadeCamera( client, true ); setCameraTarget( client, client ); setTimer( setCameraTarget, 200, 1, client, client ); triggerClientEvent( client, "spawn_SpawnedSuccessfully", client ); is it like this? sorry for late responds
xXMADEXx Posted December 14, 2013 Posted December 14, 2013 Semicolon is not required Semicolon's are 100% optional in Lua, depends on the maker. 50p made that script, and he is a programmer, so he is just probably used to putting them, as for they're needed in other languages.
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