Virtual Worlds bug
#1

Im not sure if this is a bug or my mistake, but im trying to set different virtual world in deathmatch arenas.
For example, my lobby virtual world is 0, when i select my first deathmatch arena it sets vw 1, dm arena 2 is vw 2 and so on.Yet my issue here is when i enter the deathmatch arena along with my friend, the player marker is small and i can't see him, even when we get back to lobby (Virtual world 0) still the same.Is this some kind of bug, is there any other way to set virtual world besides SetPlayerVirtualWorld(playerid,worldid)?
Reply
#2

Show the side with the entrance and exit of the arena when you give it virtualworld.
Reply
#3

Quote:
Originally Posted by Florin48
Посмотреть сообщение
Show the side with the entrance and exit of the arena when you give it virtualworld.
Код:
 new string[250],name[MAX_PLAYER_NAME],RandSpawn = random(sizeof(dm1spawns));
				    GetPlayerName(playerid,name,sizeof(name));
        			SetPlayerPos(playerid,dm1spawns[RandSpawn][0],dm1spawns[RandSpawn][1],dm1spawns[RandSpawn][2]);
        			SetPlayerFacingAngle(playerid,dm1spawns[RandSpawn][3]);
			    	SetCameraBehindPlayer(playerid);
			    	SetPlayerInterior(playerid,0);
					GivePlayerWeapon(playerid,24,9999);
					GivePlayerWeapon(playerid,33,9999);
					SetPlayerVirtualWorld(playerid,1);
					dm1[playerid] = 1;
					Lobby[playerid] = 0;
					format(string,sizeof(string),"%s(%i) has joined the Panopticon deathmatch.",name,playerid);
					SendClientMessageToAll(COLOR_CLIENT,string);
And there's a command to return to lobby which sets the virtual world to 0.This code on top is first dm arena.
Edit: There's also OnPlayerSpawn that i use if player died while in dm arena it also sets the virtual worlds regarding the arena number.Normal spawn in lobby is vw 0.
Reply
#4

try to remove this

SetPlayerFacingAngle(playerid,dm1spawns[RandSpawn][3]);
SetCameraBehindPlayer(playerid);

if it does not work then I do not know for sure what the problem would be
Reply
#5

Quote:
Originally Posted by Florin48
Посмотреть сообщение
try to remove this

SetPlayerFacingAngle(playerid,dm1spawns[RandSpawn][3]);
SetCameraBehindPlayer(playerid);

if it does not work then I do not know for sure what the problem would be
I don't think that has anything to do with it, however i need those.
Reply
#6

Bump
Reply
#7

Try this
PHP код:
 new string[250],name[MAX_PLAYER_NAME],RandSpawn random(sizeof(dm1spawns));
                    
GetPlayerName(playerid,name,sizeof(name));
                                    
SetPlayerVirtualWorld(playerid,1);
                                    
SetPlayerInterior(playerid,0);
                    
SetPlayerPos(playerid,dm1spawns[RandSpawn][0],dm1spawns[RandSpawn][1],dm1spawns[RandSpawn][2]);
                    
SetPlayerFacingAngle(playerid,dm1spawns[RandSpawn][3]);
                    
SetCameraBehindPlayer(playerid):
                    
GivePlayerWeapon(playerid,24,9999);
                    
GivePlayerWeapon(playerid,33,9999);
                    
dm1[playerid] = 1;
                    
Lobby[playerid] = 0;
                    
format(string,sizeof(string),"%s(%i) has joined the Panopticon deathmatch.",name,playerid);
                    
SendClientMessageToAll(COLOR_CLIENT,string); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)