Spawn button Problem -
ThomasEvil - 16.02.2018
Hello,
i decided to use DisableInteriorEnterExits for removing every enternaces and npc.
It wroks for all enternances and it also remove NPC's in ammunation, shops ect.
But it does not remove NPC's in CASINOS.
Any idea to solve this?
I don't want to change virtual world for players. (SOLVED)
Another problem is with those < > spawn buttons when player connect ...
I know there is some solutions that works like - If you press it nothing happens but..
I want to totally delete it.. Is it possbile? I saw on some servers that the spawn buttons
does not shows.
Re: NPC's Problem and Spawn button Problem -
GTLS - 16.02.2018
https://sampforum.blast.hk/showthread.php?tid=604626
and
http://forum.sa-mp.com/showpost.php?...43&postcount=8
Re: NPC's Problem and Spawn button Problem -
ThomasEvil - 16.02.2018
Quote:
Originally Posted by GTLS
|
+add these
Код:
RemoveBuildingForPlayer(playerid, 1895, 1117.2813, -1.6484, 1002.0781, 0.25);
RemoveBuildingForPlayer(playerid, 2188, 1125.1406, -3.4141, 1000.5781, 0.25);
RemoveBuildingForPlayer(playerid, 2188, 1127.0781, -1.6797, 1000.5781, 0.25);
RemoveBuildingForPlayer(playerid, 2188, 1125.1484, -0.0313, 1000.5781, 0.25);
WORKS
Any trick about spawn buttons?
Re: NPC's Problem and Spawn button Problem -
NaS - 16.02.2018
For the spawn buttons, you need to actually spawn the player using SpawnPlayer(playerid); in OnPlayerRequestClass, and then put the player into a custom Spawn Selection.
This will skip the original one and let you build your own Spawn Selection with TextDraws or however you want to do it.
For a custom spawn selection you must freeze the player, set the camera and block any callbacks (like commands) so the player cannot exit it/leave it etc, and also use a different Virtual World for every player so that 2 players in the Spawn Sel. cannot see each other.
Re: NPC's Problem and Spawn button Problem -
ThomasEvil - 16.02.2018
Thanks! Lock
EDIT:
UNLOCK
Re: NPC's Problem and Spawn button Problem -
ThomasEvil - 17.02.2018
Quote:
Originally Posted by NaS
you need to actually spawn the player using SpawnPlayer(playerid); in OnPlayerRequestClass, and then put the player into a custom Spawn Selection.
|
I DID THIS:
Код:
public OnPlayerRequestClass(playerid)
{
SetTimerEx("SkipSpawn",10,0,"i",playerid);
ShowPlayerDialog(playerid, ...); //Login Dialog
return 1;
}
Код:
forward SkipSpawn(playerid);
public SkipSpawn(playerid)
{
SpawnPlayer(playerid);
return 1;
}
The buttons disappear but you CAN see them for one second when you connect SO,
if there is some player on coke, he can fast click the SPAWN button and that is
NOT what i want ... I want to absolutely
100% KILL THOSE GOD DAMN BUTTONS!
...
Re: NPC's Problem and Spawn button Problem -
Sew_Sumi - 17.02.2018
Quote:
Originally Posted by ThomasEvil
The buttons disappear but you CAN see them for one second when you connect SO,
if there is some player on coke, he can fast click the SPAWN button
|
Won't matter if you do stop them spawning via tracking them in these states.
Re: NPC's Problem and Spawn button Problem -
ThomasEvil - 17.02.2018
Any idea how to solve it?
Re: NPC's Problem and Spawn button Problem -
Mugala - 17.02.2018
PHP код:
public OnPlayerRequestClass(playerid)
{
//SetTimerEx("SkipSpawn",10,0,"i",playerid);
ShowPlayerDialog(playerid, ...); //Login Dialog
return 0;
}
with
return 0; you'll prevent them for spawning.
Re: NPC's Problem and Spawn button Problem -
ThomasEvil - 18.02.2018
Quote:
Originally Posted by Mugala
PHP код:
public OnPlayerRequestClass(playerid)
{
//SetTimerEx("SkipSpawn",10,0,"i",playerid);
ShowPlayerDialog(playerid, ...); //Login Dialog
return 0;
}
with return 0; you'll prevent them for spawning.
|
That's cool, so the spawn buttons are here permanently and player cant spawn when response on dialog.
I tried this:
Код:
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid,1);
SetSpawnInfo(playerid,0,0,0,0,0,0,-1,-1,-1,-1,-1,-1);
return 0;
}
But still does not work :/
GOD DAMN BUTTONS I HAVE RED MANY FORUM TOPICS ABOUT THAT ANYTHING DOES NOT WORK PROPERLY