Posts: 50
Threads: 8
Joined: Feb 2012
Reputation:
0
Hi guys. I got the PPC_Trucking gamemode with a new problem. When the player types /spec he will spectate fine. But when it comes to /endspec , the command will respawn him, and he will loose his mission, everything. How to make so, that /endspec returns him to his position before /spec , so he can continue mission?
Posts: 1,189
Threads: 51
Joined: Jan 2012
Reputation:
0
Can you show us the command code please?
Posts: 57
Threads: 1
Joined: Dec 2010
Reputation:
0
Well, i'm not going to write the script for you, i will assume you know that. All you need to do is save player's current position when he types /spec (I recommend SetPVarFloat(...) and then when he types /endspec you spawn the player and return him to the GetPVarFloat(... position. I don't think there is an easier way of doing it. The same goes for score, weapons etc. You have to save it in a variable on /spec, and return it back on /endspec.