MSHost.cz https://forum.mshost.cz:443/ |
|
Rychlost hry prěs marker pro mapperi od UN!TA :3 https://forum.mshost.cz:443/viewtopic.php?f=18&t=27959 |
Page 1 of 1 |
Author: | eXcY [ Sun 18. Aug 2013 22:06:29 ] |
Post subject: | Rychlost hry prěs marker pro mapperi od UN!TA :3 |
1. udelejte si client2.lua a vpište do nej tohle, samozrejme to i upravte na svuj marker a na svoji rychlost hry. Code: asd = getLocalPlayer() function slowmo() marker = createMarker(x, y, z, "type", size, r, g, b, a) -x,y,z - lokalizace -"type" - typ markeru, treba corona,checkpoint "size" velikost markeru, rgb - barvy v Red Green Blue , a - alpha end function MarkerHit ( hitPlayer, matchingDimension ) vehicle = getPedOccupiedVehicle ( hitPlayer ) if hitPlayer ~= asd then return end if source == marker then setGameSpeed(0-10) -zde setneme rychlost hry když se player dotkne markeru end end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), slowmo ) addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) 2. pak tohle dáte do meti v mape. Code: <script src="client2.lua" type="client"></script> Nic težkýho, Snad vam to pomohlo :3 ~UN!T |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |