SA-MP Forums Archive
Remove Spawn Bar Command - 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: Remove Spawn Bar Command (/showthread.php?tid=191505)



Remove Spawn Bar Command - Little Jimmy - 19.11.2010

Hey, can anyone well me the pawno command to remove the bar above?

eg: DisableInteriorEnterExits(); disables the default enter and exit of the interiors


Re: Remove Spawn Bar Command - The_Moddler - 19.11.2010

pawn Код:
TogglePlayerSpectating(playerid, 1);



Re: Remove Spawn Bar Command - Scenario - 19.11.2010

You can use "TogglePlayerSpctating(playerid, 1)" when the player connects and after they register/login then use "TogglePlayerSpectating(playerid 0)".


AW: Remove Spawn Bar Command - Meta - 19.11.2010

hey, cool!
now i can disable this shit

bu what about F4?


Re: AW: Remove Spawn Bar Command - The_Moddler - 19.11.2010

Quote:
Originally Posted by Meta
Посмотреть сообщение
hey, cool!
now i can disable this shit

bu what about F4?
Well, you can't, only making variables and stuff..


Re: Remove Spawn Bar Command - Little Jimmy - 27.11.2010

Hey, i tried it but it didn't work, where should i put the "TogglePlayerSpectating(playerid, 1);" and "TogglePlayerSpectating(playerid, 0);"

just so i can see if i got them in the right places


Re: Remove Spawn Bar Command - Buzzbomb - 27.11.2010

Public OnPlayerConnect
TogglePlayerSpectating(playerid, 1);

If you have a register or login put

TogglePlayerSpectating(playerid, 0);

if you don't have that then make a function and a timer

Note i used this and if you push f4 and die it skipps class selection and just respawns you.. but mine set to spawn at last saved position...

pawn Код:
public OnPlayerRequestClass(playerid)
{
    SetTimer("SpawnPlayer",100,false);
    return 1;
}
forward SpawnPlayer(playerid);
public SpawnPlayer(playerid)
{
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid, 1683.3362,-2326.4019,13.5469);
        SetPlayerFacingAngle(playerid, 357.8167);
    SpawnPlayer(playerid);
    return 1;
}



Re: Remove Spawn Bar Command - Little Jimmy - 29.11.2010

Problem Sorted