Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Synx on May 12, 2011, 11:11:06 pm

Title: WorldBounds
Post by: Synx on May 12, 2011, 11:11:06 pm
Hello,
Can anybody, can make WorldBounds on middle i want part of all map in middle.... Wheres sunshine autos that part let it stays no WorldBounds, but part 2 of map set WorldBounds.
Sorry, Bad English.

Thanks,
Synx  8)
Title: Re: WorldBounds
Post by: tato on May 13, 2011, 01:48:45 am
but where i can do that but in what part i don't understad in what part are u saying
Title: Re: WorldBounds
Post by: Synx on May 13, 2011, 02:17:29 pm
Dont Create in red zone WorldBounds, but all other map set worldbounds.
...

(http://www.bildites.lv/images/1fs8scpr7gcf3t2o0kve.png)
Title: Re: WorldBounds
Post by: tato on May 14, 2011, 03:07:09 am
i don't understand....
Title: Re: WorldBounds
Post by: Synx on May 14, 2011, 11:10:20 am
Create all map world bounds , without Red zone....!!!! On that image.
Title: Re: WorldBounds
Post by: BIG[H] on May 14, 2011, 02:07:21 pm
He Mean's All Map Except Mansion :P
Title: Re: WorldBounds
Post by: Synx on May 14, 2011, 03:05:50 pm
He Mean's All Map Except Mansion :P

Yes
Title: Re: WorldBounds
Post by: BIG[H] on May 14, 2011, 07:00:58 pm
Use Stormeus Alternative Worlds Bounds EDIT it like

if player in that arena remove player
Title: Re: WorldBounds
Post by: tato on May 14, 2011, 08:59:49 pm
Use Stormeus Alternative Worlds Bounds EDIT it like

if player in that arena remove player
yes that make sense because the world bounds it's square and it's kind of imposible take out the mansion
Title: Re: WorldBounds
Post by: tato on May 14, 2011, 09:01:15 pm
or try to use this software
http://www.megaupload.com/?d=4XY7VOK7 (http://www.megaupload.com/?d=4XY7VOK7)
no virus link uploaded by me
i didn't create the software it's easy to use ok
Title: Re: WorldBounds
Post by: Synx on May 14, 2011, 10:01:57 pm
BIG[H]
I Dont want to delete That Place i want red zone is not world bounds
But all other map is worldbounds on!!!!


or try to use this software
http://www.megaupload.com/?d=4XY7VOK7 (http://www.megaupload.com/?d=4XY7VOK7)
no virus link uploaded by me
i didn't create the software it's easy to use ok

Not Working.

- Compoment 'ms..................' .................


----------------------------------------------------->
Please Create just easyest not alternative i want
that somethings like....
SetWorldBounds(........)
Island Y Y X X....
Please create easyest....!!






<-------------------------------------------------------
Title: Re: WorldBounds
Post by: stormeus on May 14, 2011, 10:35:37 pm
It doesn't work like that. If you want to stop players from going on Starfish, you need to script it.
Title: Re: WorldBounds
Post by: tato on May 15, 2011, 12:06:48 am
but the software i posted it's working i swear
Title: Re: WorldBounds
Post by: DeWilX on May 15, 2011, 06:12:33 pm
but the software i posted it's working i swear

Works. :)
Title: Re: WorldBounds
Post by: BIG[H] on May 15, 2011, 06:55:33 pm
some type of shitty DLL is Missing  :-[
Title: Re: WorldBounds
Post by: yazeen on May 17, 2011, 11:15:44 am
or try to use this software
http://www.megaupload.com/?d=4XY7VOK7 (http://www.megaupload.com/?d=4XY7VOK7)
no virus link uploaded by me
i didn't create the software it's easy to use ok

i gave you that software! erm..

Topic:-
hmm i have a idea use Pickups around starfish island and when ppl goes through it set there pos to some where else and send a message "you are not allowed to come here" xD Just an idea
Title: Re: WorldBounds
Post by: stormeus on May 17, 2011, 02:07:16 pm
Topic:-
hmm i have a idea use Pickups around starfish island and when ppl goes through it set there pos to some where else and send a message "you are not allowed to come here" xD Just an idea

Too many pickups could probably crash the server. You could just get the coordinates of the box around Starfish Island and use a function like this to keep them out.
[pawn]
new Float:Starfish_min_x = 0.0,
     Float:Starfish_max_x = 0.0,
     Float:Starfish_min_y = 0.0,
     Float:Starfish_max_y = 0.0,
     Float:Respawn_x = 0.0,
     Float:Respawn_y = 0.0,
     Float:Respawn_z = 0.0;

public StarfishForbidden()
{
    // Variables for players' current positions
    new Float:X,
            Float:Y,
            Float:Z;

    // Iterate through all connected players
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        // Player has to be connected
        if(IsPlayerConnected(i))
        {
            // Get player's current position
            GetPlayerPos(i, X, Y, Z);

            // They're in Starfish
            if(X > min_x && X < max_X && Y > min_y && Y < max_y)
            {
                // Remove them
                SetPlayerPos(i, Respawn_x, Respawn_y, Respawn_z, 25, 0, 0);

                // Send them a message
                SendClientMessage(i, COLOR_YELLOW, "You may not enter Starfish Island.");
            }
        }
    }
}
[/pawn]
[pawn]
SetTimer("StarfishForbidden", 1000, 1); // Check Starfish Island every second
[/pawn]
Title: Re: WorldBounds
Post by: tato on May 17, 2011, 06:09:34 pm
or try to use this software
http://www.megaupload.com/?d=4XY7VOK7 (http://www.megaupload.com/?d=4XY7VOK7)
no virus link uploaded by me
i didn't create the software it's easy to use ok

i gave you that software! erm..

Topic:-
hmm i have a idea use Pickups around starfish island and when ppl goes through it set there pos to some where else and send a message "you are not allowed to come here" xD Just an idea
yes... sorry for no credits but i uploaded in my account
Title: Re: WorldBounds
Post by: BIG[H] on May 17, 2011, 11:29:13 pm
[pawn]new Float:Starfish_min_x = 0.0,
     Float:Starfish_max_x = 0.0,
     Float:Starfish_min_y = 0.0,
     Float:Starfish_max_y = 0.0,
     Float:Respawn_x = 0.0,
     Float:Respawn_y = 0.0,
     Float:Respawn_z = 0.0;

public StarfishForbidden()
{
    // Variables for players&#039; current positions
    new Float:X,
            Float:Y,
            Float:Z;

    // Iterate through all connected players
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        // Player has to be connected
        if(IsPlayerConnected(i))
        {
            // Get player&#039;s current position
            GetPlayerPos(i, X, Y, Z);

            // They&#039;re in Starfish
            if(X > min_x && X < max_X && Y > min_y && Y < max_y)
            {
                // Remove them
                SetPlayerPos(i, Respawn_x, Respawn_y, Respawn_z, 25, 0, 0);

                // Send them a message
                SendClientMessage(i, COLOR_YELLOW, "You may not enter Starfish Island.");
            }
        }
    }
}
[/pawn]



BUGGED!
Title: Re: WorldBounds
Post by: stormeus on May 18, 2011, 12:19:22 am

BUGGED!


Maybe because the coordinates aren't set?
Quote
[pawn]
new Float:Starfish_min_x = 0.0,
     Float:Starfish_max_x = 0.0,
     Float:Starfish_min_y = 0.0,
     Float:Starfish_max_y = 0.0,
     Float:Respawn_x = 0.0,
     Float:Respawn_y = 0.0,
     Float:Respawn_z = 0.0;
[/pawn]
Title: Re: WorldBounds
Post by: tato on May 18, 2011, 05:25:20 am
[pawn]new Float:Starfish_min_x = 0.0,
     Float:Starfish_max_x = 0.0,
     Float:Starfish_min_y = 0.0,
     Float:Starfish_max_y = 0.0,
     Float:Respawn_x = 0.0,
     Float:Respawn_y = 0.0,
     Float:Respawn_z = 0.0;

public StarfishForbidden()
{
    // Variables for players&#039; current positions
    new Float:X,
            Float:Y,
            Float:Z;

    // Iterate through all connected players
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        // Player has to be connected
        if(IsPlayerConnected(i))
        {
            // Get player&#039;s current position
            GetPlayerPos(i, X, Y, Z);

            // They&#039;re in Starfish
            if(X > min_x && X < max_X && Y > min_y && Y < max_y)
            {
                // Remove them
                SetPlayerPos(i, Respawn_x, Respawn_y, Respawn_z, 25, 0, 0);

                // Send them a message
                SendClientMessage(i, COLOR_YELLOW, "You may not enter Starfish Island.");
            }
        }
    }
}
[/pawn]



BUGGED!
the coordinates are 0.0 and it need to be set X_X!
Title: Re: WorldBounds
Post by: BIG[H] on May 18, 2011, 10:58:05 am
Fixed :)

[pawn]SetPlayerPos(i, Respawn_x, Respawn_y, Respawn_z, 25);[/pawn] no 0 , 0