SA-MP Forums Archive
how do I get rid of this - 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: how do I get rid of this (/showthread.php?tid=365828)



how do I get rid of this - Michael_Cuellar - 04.08.2012

http://i1240.photobucket.com/albums/.../sa-mp-034.png The thing at the bottom?


Re: how do I get rid of this - Ballu Miaa - 04.08.2012

The game mode is not compiled properly thats why Game mode is not loading properly


Re: how do I get rid of this - Michael_Cuellar - 04.08.2012

no ignore that blure thing in the right conor i wanna get rid of that spawn thing at the bottom


Re: how do I get rid of this - SEnergy - 04.08.2012

pawn Код:
//to hide UI
TogglePlayerSpectating(playerid, true);
//to show UI
TogglePlayerSpectating(playerid, false);



Re: how do I get rid of this - Michael_Cuellar - 04.08.2012

where at


Re: how do I get rid of this - SEnergy - 04.08.2012

OnPlayerConnect

TogglePlayerSpectating(playerid, true);

and when you want to show it

TogglePlayerSpectating(playerid, false);


Re: how do I get rid of this - Michael_Cuellar - 04.08.2012

Now I cant play my gamemode, like i want it to were it plays right when you log in


Re: how do I get rid of this - SEnergy - 04.08.2012

Quote:
Originally Posted by Michael_Cuellar
Посмотреть сообщение
Now I cant play my gamemode, like i want it to were it plays right when you log in
well you will have to click on that button then, I don't think that it will kill you or any of your players.. its just 1 sec to "waste"...


Re: how do I get rid of this - Ranama - 04.08.2012

make this:

pawn Код:
OnPlayerConnect(playerid){
TogglePlayerSpectating(playerid, true);
SetTimerEx("SpawnPlayer", 100, false, "i", playerid);
}

//put this at the bottom of your script or somewhere
forward SpawnPlayer(playerid);
public SpawnPlayer(playerid){
SpawnPlayer(playerid);
TogglePlayerSpectating(playerid, false);
}
That should make so when a player connect you set them spectating and in 0.1 second they'll get spawned and unspectating, tell if it's not working.

Hope I helped


Re: how do I get rid of this - Cena44 - 04.08.2012

compile your gamemode correctly