SA-MP Forums Archive
two WorldBounds - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: two WorldBounds (/showthread.php?tid=245446)



two WorldBounds - duckie - 31.03.2011

Hello guys.
I've made 2 worldbounds so if someone teleports to the pay n spray he dont get: stay in the world boundries.

But when i spawn it says: stay in the world boundries.

is it possible to make two worldbounds?

this is my onplayerspawn
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "Guard", true))
    {
        SetPlayerSkin(playerid, 125);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerColor(playerid, 0xFFFFFFAA);
    }
    return 1;
    }
    SetPlayerWorldBounds(playerid, 945.9079, 326.9805, 1132.754, 688.9946);
    SetPlayerWorldBounds(playerid, 2172.085, 1483.09, 2405.642, 1483.09);
    SetPlayerArmour(playerid, 100);
    return 1;
}



Re: two WorldBounds - duckie - 31.03.2011

c'mon, help me please!!


AW: two WorldBounds - Nero_3D - 31.03.2011

No it isnt possible but you could change the world bounds in the pay and spray teleport command


Re: two WorldBounds - duckie - 31.03.2011

ah ok ty.