My full server side script
teamgroove = createTeam ( "Groove", 26, 124, 15 )
teamballas = createTeam ( "Ballas", 69, 21, 132 )
teamvagos = createTeam ( "Vagos", 172, 153, 28 )
teamcops = createTeam ( "Cops", 20, 63, 208 )
groovemarker = createMarker ( 2495.3999,-1690.80005,13.8, "cylinder", 1, 57, 178, 20, 255 )
--ballasmarker = createMarker ( 2230.8000488281,-1408,23, "cylinder", 1, 125, 24, 132, 255 )
--vagosmarker = createMarker ( 1857.0999755859,-2035.8000488281,12.5, "cylinder", 1, 166, 166, 26, 255 )
--copsmarker = createMarker ( 1554.5,-1675.59998,15.2, "cylinder", 1, 35, 58, 178, 255 )
groovemarkerreturn = createMarker ( 2468.3999023438,-1698.3000488281,1012.5, "cylinder", 1, 57, 178, 20, 255 )
--ballasmarkerreturn = createMarker ( 1531.4000244141,-7.1999998092651,1000.9000244141, "cylinder", 1, 125, 24, 132, 255 )
--vagosmarkerreturn = createMarker ( 2352.6000976563,-1180.8000488281,1027, "cylinder", 1, 166, 166, 26, 255 )
--copsmarkerreturn = createMarker ( 246.39999389648,107.59999847412,1002.200012207, "cylinder", 1, 57, 178, 20, 255 )
setElementInterior(groovemarkerreturn, 2)
--setElementInterior(ballasmarkerreturn, 3)
--setElementInterior(vagosmarkerreturn, 5)
--setElementInterior(copsmarkerreturn, 10)
function groovemarkertp( hitElement, matchingDimension )
setElementInterior ( hitElement, 2, 2464.2110 , -1697.9520 , 1013.5080 )
end
addEventHandler( "onMarkerHit", groovemarker, groovemarkertp )
--function ballasmarkertp( hitElement, matchingDimension )
--setElementInterior ( hitElement, 3, 1527.38 , -11.02 , 1002.10 )
--end
--addEventHandler( "onMarkerHit", ballasmarker, ballasmarkertp )
--function vagosmarkertp( hitElement, matchingDimension )
--setElementInterior ( hitElement, 5, 2351.1540 , -1180.5770 , 1027.9770 )
--end
--addEventHandler( "onMarkerHit", vagosmarker, vagosmarkertp )
--function copsmarkertp( hitElement, matchingDimension )
--setElementInterior ( hitElement, 10, 246.4410 , 112.1640 , 1003.2190 )
--nd
--addEventHandler( "onMarkerHit", copsmarker, copsmarkertp )
function groovemarkerreturntp( hitElement, matchingDimension )
setElementInterior ( hitElement, 0, 2495.3999,-1690.80005,13.8 )
end
addEventHandler( "onMarkerHit", groovemarkerreturn, groovemarkerreturntp )
--function ballasmarkerreturntp( hitElement, matchingDimension )
-- setElementInterior(hitElement, 0, 2230.8000488281, -1408, 23)
--end
--addEventHandler( "onMarkerHit", ballasmarkerreturn, ballasmarkerreturntp)
--function vagosmarkerreturntp( hitElement, matchingDimension )
-- setElementInterior(hitElement, 0, 1857.0999755859, -2035.8000488281, 12.5)
--end
--addEventHandler( "onMarkerHit", vagosmarkerreturn, vagosmarkerreturntp )
--function copsmarkerreturntp( hitElement, matchingDimension )
-- setElementInterior(hitElement, 0, 1554.5, -1675.59998, 15.2)
--end
function groovespawn()
spawnPlayer(client, 2495, -1686, 13)
fadeCamera(client, true)
setCameraTarget(client, client)
outputChatBox("You are a groove", client)
giveWeapon ( source, 1, 1 )
giveWeapon ( source, 28, 500 )
giveWeapon ( source, 25, 500 )
setElementModel( source, 106 )
setPlayerTeam( client, teamgroove)
end
function ballasspawn()
spawnPlayer(client, 2247, -1456, 24)
fadeCamera(client, true)
setCameraTarget(client, client)
outputChatBox("You are a ballas", client)
giveWeapon ( source, 1, 1 )
giveWeapon ( source, 32, 500 )
giveWeapon ( source, 30, 500 )
setElementModel( source, 104 )
setPlayerTeam( client, teamballas)
end
function vagosspawn()
spawnPlayer(client, 1883, -2001, 13)
fadeCamera(client, true)
setCameraTarget(client, client)
outputChatBox("You are a vagos", client)
giveWeapon ( source, 1, 1 )
giveWeapon ( source, 29, 500 )
giveWeapon ( source, 33, 500 )
setElementModel( source, 109 )
setPlayerTeam( client, teamvagos)
end
function copsspawn()
spawnPlayer(client, 1575, -1634, 13)
fadeCamera(client, true)
setCameraTarget(client, client)
outputChatBox("You are a cops", client)
giveWeapon ( source, 31, 500 )
giveWeapon ( source, 22, 500 )
giveWeapon ( source, 17, 3 )
setElementModel( source, 267 )
setPlayerTeam( client, teamcops)
end
addEvent("grooveevent",true)
addEvent("ballasevent",true)
addEvent("vagosevent",true)
addEvent("copsevent",true)
addEventHandler("grooveevent",root,groovespawn)
addEventHandler("ballasevent",root,ballasspawn)
addEventHandler("vagosevent",root,vagosspawn)
addEventHandler("copsevent",root,copsspawn)
and meta
<meta>
<info author="Alazam" type="gamemode" name="Gangdm" description="Gang death match" />
<script src="client.lua" type="client" />
<script src="server.lua" type="server" />
<include resource="gangmap" />
<include resource="reload" />
<include resource="superman" />
<include resource="realdriveby" />
<include resource="headshot" />
</meta>