NPC's Problem and Spawn button Problem
#1

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

https://sampforum.blast.hk/showthread.php?tid=604626

and http://forum.sa-mp.com/showpost.php?...43&postcount=8
Reply
#3

+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?
Reply
#4

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

Thanks! Lock

EDIT: UNLOCK
Reply
#6

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

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

Any idea how to solve it?
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)