bandi94 Posted January 6, 2012 Share Posted January 6, 2012 Hello. Player's on my server said they get bored while waiting after another player's especially when is a longer map Now i think to do a "Ghost " thing i mean after they died they get respawn in a semy transparent car and they can play but when they reach hunter they get blowed or when only 1 non ghost player remained ghost get blow up and the votemap start i don't wanna change how the race gamemod work. So i started whit geting spawnpoint position's from map and other stufs now i realized that the race gamemod don't let me to spawn a player after he died (the car get created after i spawn the player and warp into the wehicle) no error but don't spawn and warp so i think the race gamemod block me. If somebody do this or something similar or you just know how to do it can give me some ideas where to start i mean to unluck respawn and if somethink else need. THX for all Link to comment
GTX Posted January 6, 2012 Share Posted January 6, 2012 You mean when player is dead then for example he press' button SPACE and then he respawns? Check out https://wiki.multitheftauto.com/wiki/Resource:Race Link to comment
bandi94 Posted January 6, 2012 Author Share Posted January 6, 2012 yes something like that but i don't get my answer on wiki ? does not appear how to respawn a player after he died the race gamemod block the spawnPlayer().... Link to comment
GTX Posted January 6, 2012 Share Posted January 6, 2012 Did you try to re-search whole race resource? EDIT: Try this: respawnVehicle Link to comment
bandi94 Posted January 6, 2012 Author Share Posted January 6, 2012 no but i have problem whit spawning player's not vehicles... but i will try Edit: Not Work Link to comment
codeluaeveryday Posted January 6, 2012 Share Posted January 6, 2012 RespawnVehicle never worked for me like this. So. This is an idea i thought of, never tested it... [url=https://wiki.multitheftauto.com/wiki/SetElementSpeed]https://wiki.multitheftauto.com/wiki/SetElementSpeed[/url] (Source Code) [url=https://wiki.multitheftauto.com/wiki/GetElementSpeed]https://wiki.multitheftauto.com/wiki/GetElementSpeed[/url] (Source Code) setElementData getElementData setTimer setElementAlpha onPlayerWasted Link to comment
arezu Posted January 6, 2012 Share Posted January 6, 2012 (edited) spawnPlayer does work and it automaticly puts player into vehicle for race gamemode, however race has auto spectator script that handels camera, so you need to disable spectating, and do so that players cant spectate a player that has already died and has respawned. Search for isValidPlayer in race resource and you will find that players cant be spectated if their element data race.finished and race.spectating is true. To disable spectating, search for Spectate.stop, i wont tell you more. (you dont actually need to edit race to make it work) players and that has already died and has respawned will have strange elementAlpha so you need to handle alpha when vehicle changes (or just onClientRender). Edited January 6, 2012 by Guest Link to comment
bandi94 Posted January 6, 2012 Author Share Posted January 6, 2012 ok and what to do whit this ? sorry man but i am not beginer what i can do whit this ? i have problem whit spawning a Player after he died not speed and ElementData or what do you try to say ? Link to comment
codeluaeveryday Posted January 6, 2012 Share Posted January 6, 2012 Solution... Set these settings in the map meta if its race! "#respawntime" value="[ 5 ]"> "#respawn" value='[ "timelimit" ]'> Then if your not a beginner! setTimer ( setElementAlpha, 5500, 1, getPedOccupiedVehicle (thePlayer) , 120 ) Ex... function wasted() setTimer ( setElementAlpha, 5500, 1, getPedOccupiedVehicle (source) , 120 ) end addEventHandler("onPlayerWasted",getRootElement(),wasted) Link to comment
bandi94 Posted January 6, 2012 Author Share Posted January 6, 2012 @csmit195 you don't get me i wanna the race gamemod work whit respawn none bk i don't wanna a map run for 30 min ... Link to comment
codeluaeveryday Posted January 6, 2012 Share Posted January 6, 2012 Ohk, how long do you want it running for? Link to comment
bandi94 Posted January 6, 2012 Author Share Posted January 6, 2012 uptil all non ghost player's or is only 1 alive die (how race work's whit none respawn ) 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