Class Selection
#1

Im using textdraw based class selection and it work
I pick class e.g. Engineer and i get weapons and everything,but when i died im spawning without weapons
How i can make when you press "Enigneer" it will remember and everytime you respawn you will be "Engineer" untill you want to change class again with /class (well for now i just need something so it will remember which class is choosed)
Here is my code:http://pastebin.com/NdjK5mrH
Reply
#2

https://sampwiki.blast.hk/wiki/SetSpawnInfo

Since a player can have up to 3 weapons, you can set the weapons in SetSpawnInfo and the weapons will be given upon the spawning.
Reply
#3

Im using more maps and coords are changing,so which coords i will put on (SetSpawnInfo,Float: x,Float:y,Float:z)....After few mins it will be changed depend on map
Im defined
Quote:

enum mInfo
{
mName[32],
mFscriptName[32],
Float:mCTSpawnX,
Float:mCTSpawnY,
Float:mCTSpawnZ,
Float:mTSpawnX,
Float:mTSpawnY,
Float:mTSpawnZ,
}

but that dont seems to work if i put mTSpawnZ etc.
Any idea?
Reply
#4

You can set to 0.0 (x, y, z) in the function and normally in OnPlayerSpawn set the correct position.
Reply
#5

Thanks man it worked!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)