RemoveBuildingForPlayer and Change VirtualWorld Problem.
#1

Hi.
RemoveBuildingForPlayer default world ID: 0 and can not be changed manually. How do i change
e.g. (ID: 1,2,3 etc.) Please share your ideas.

I so tried something but it didn't work.

PHP код:
stock RemoveBuildingWorldPlayer()
{
     for(new 
0GetPlayerPoolSize(); <= ji++){
     if(!
IsPlayerConnected(i) || IsPlayerNPC(i)) continue;
        new 
a;
    if(
SetPlayerVirtualWorld(i>= 1))
    {
        
RemoveBuildingForPlayer(i16614, -346.67191595.078179.66410.25);
        
RemoveBuildingForPlayer(i16613, -346.67191595.078179.66410.25);
    }}
    return 
true;

Reply
#2

So you want to remove buildings for a player who is not in the world 0 but another?
Reply
#3

Quote:
Originally Posted by Matz
Посмотреть сообщение
So you want to remove buildings for a player who is not in the world 0 but another?
Thank you for comment.
Yes, first(World ID: 0) default virtual world undeleted RemoveBuilding showing players. Other virtual world(World ID: 1/2/3/4/5 etc.) should be RemoveBuilding deleted players.

for example:
World 0 not delete(show) Removebuildingforplayer function object.
World 1 delete Removebuildingforplayer function object.
Reply
#4

Quote:
Originally Posted by Ult1mate
Посмотреть сообщение
Thank you for comment.
Yes, first(World ID: 0) default virtual world undeleted RemoveBuilding showing players. Other virtual world(World ID: 1/2/3/4/5 etc.) should be RemoveBuilding deleted players.

for example:
World 0 not delete(show) Removebuildingforplayer function object.
World 1 delete Removebuildingforplayer function object.
According to what you said you must use a code something like this:

Код:
if(GetPlayerVirtualWorld(playerid) > 0)
{
    RemoveBuildingForPlayer(...);
}
Reply
#5

Quote:
Originally Posted by Matz
Посмотреть сообщение
According to what you said you must use a code something like this:

Код:
if(GetPlayerVirtualWorld(playerid) > 0)
{
    RemoveBuildingForPlayer(...);
}
thank you sir !
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)