Login, Spawn button [ Help needed! ] - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Login, Spawn button [ Help needed! ] (
/showthread.php?tid=153559)
Login, Spawn button [ Help needed! ] -
Cameltoe - 09.06.2010
Ok, so i managed to remove the spawn button with The TogglePlayerSpectate function.
The problem is that i want it to spectate a other location.
i been searching around for hours without any luck.
some say it's impossible but i dont think it is.
you can spectate a player and a car, why cant you spectate some place around the map?
Any solution is appreciated! thx
Anyway here's the code im using:
Код:
if (Islogged == 0){
Islogged = 1;
TogglePlayerSpectating(playerid, 1);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Enter your password below:","Login","Cancel");}else{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);}
return 1;
Re: Login, Spawn button [ Help needed! ] -
Cameltoe - 09.06.2010
Nvm, i worked it out.