PlayerRequestClass - Quick Question!! :) - 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: PlayerRequestClass - Quick Question!! :) (
/showthread.php?tid=472472)
PlayerRequestClass - Quick Question!! :) -
hewittpro - 28.10.2013
Hey Guys Check this out below on my login screen, At the bottom of the login screen it has the << >> Spawn dialog thingy. Well I need to remove that so what would be the quickest way ?! Thanks guys!!!
Re: PlayerRequestClass - Quick Question!! :) -
hewittpro - 28.10.2013
Anyone? I'm sure its not that hard.
Re: PlayerRequestClass - Quick Question!! :) -
PaulDinam - 28.10.2013
Toggle on player spectation and use InterpolateCameraPos.
Re: PlayerRequestClass - Quick Question!! :) - Patrick - 28.10.2013
You could use TogglePlayerSpectating(playerid, 0 = false & 1 = true), I'll show you a quick code to remove it.
pawn Код:
#define DIALOG_LOG 1
public OnPlayerConnect(playerid)
{
TogglePlayerSpectating(playerid, 1);
return true;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_LOG:
{
if(!response) return 1;
if(response)
{
TogglePlayerSpectating(playerid, 0);
SpawnPlayer(playerid);
SetSpawnInfo(playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
//More Stuff
}
}
}
return true;
}