Remove Spawn Bar Command
#1

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

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

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

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

hey, cool!
now i can disable this shit

bu what about F4?
Reply
#5

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..
Reply
#6

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
Reply
#7

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;
}
Reply
#8

Problem Sorted
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)