25.02.2010, 18:49
Hi there,
I have a problem, I want to make this: (spoiler: this uses interriors)
If a player is in virtualworld number 1 and near point 756989,1240.000000,1082.149902
then when he pushes secondairy fire it makes him go to point 932.67,2215.2,11.48,225
And if a player is in virtualworld number 2 and near point 756989,1240.000000,1082.149902
then when he pushes secondairy fire it makes him go to point 967.43,2214.36,11.46
I know how to make this a little bit but i don't know how to insert the virtual world thingy
I have something like this:
but where do i need to put the virtualworld is 1 or 2
I have a problem, I want to make this: (spoiler: this uses interriors)
If a player is in virtualworld number 1 and near point 756989,1240.000000,1082.149902
then when he pushes secondairy fire it makes him go to point 932.67,2215.2,11.48,225
And if a player is in virtualworld number 2 and near point 756989,1240.000000,1082.149902
then when he pushes secondairy fire it makes him go to point 967.43,2214.36,11.46
I know how to make this a little bit but i don't know how to insert the virtual world thingy
I have something like this:
pawn Код:
if (PlayerToPoint(3.0, playerid,756989,1240.000000,1082.149902))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
SetPlayerPos(playerid,932.67,2215.2,11.48,225);
if(HouseInfo[i][hHel] == 1)
{
new Float:tempheal;
GetPlayerHealth(playerid,tempheal);
if(tempheal < 100.0)
{
SetPlayerHealth(playerid,100.0);
}
}
}