SA-MP Forums Archive
SetSpawnInfo - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetSpawnInfo (/showthread.php?tid=607422)



SetSpawnInfo - ScIrUsna - 19.05.2016

Hi,

SetSpawnInfo when i set skin, onplayerspawn with getplayerskin i get that skin, or old skin?


Re: SetSpawnInfo - Micko123 - 19.05.2016

Explain. What do you need?


Re: SetSpawnInfo - luke49 - 19.05.2016

When you set your skin with function SetSpawnInfo, after death your skin will be changed into the skin, that you have chosen in that function.

For example, after public OnPlayerRequestClass(playerid, classid) you have SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );, so after death, your skin will be "0".

More information about SetSpawnInfo here:
https://sampwiki.blast.hk/wiki/SetSpawnInfo


Re: SetSpawnInfo - ScIrUsna - 19.05.2016

Yes i understand that my skin will be changed after death, but it's changed instantly i mean onplayerspawn i can use getplayerskin and i get SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 ); this skin what i have wrote to this function or i need set timer to chec


Re: SetSpawnInfo - luke49 - 20.05.2016

I do not understand your problem clearly. If you want to get player's skin, use GetPlayerSkin function - you do not need any timers.


Re: SetSpawnInfo - Dayrion - 20.05.2016

I don't understand too. Use SetPlayerSkin(playerid, skinid) to set a skin for a player. Use SetSpawnInfo(...) to set a skin which it's the same when the player respawn.


Re: SetSpawnInfo - Beckett - 20.05.2016

What do you want to do exactly? Be precise.