Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: UrbanY on Jun 06, 2018, 06:10 PM

Title: disqualified from the event
Post by: UrbanY on Jun 06, 2018, 06:10 PM
if(InPoly( player.Pos.x, player.Pos.y, -834.547, -386.178, -834.547, -385.178, -834.547, -384.365, -834.547, -383.319, -834.547, -382.178, -834.547, -381.6, -834.547, -380.35, -834.547, -379.334, -834.547, -378.318, -834.547, -377.287, -835.275, -376.645, -836.166, -376.645, -837.275, -376.645, -837.947, -376.645, -839.072, -376.645 ))
{
I_MSG("you have been desalified from the event", player);
player.World = 1;
}

this does not work for me can someone help me do better?
Title: Re: disqualified from the event
Post by: Shadow on Jun 06, 2018, 08:43 PM
Maybe your intention was to negate the return value of InPoly, as in, you meant to add a '!' before it. Just a thought, I can't really understandn why your code _doesn't work_ because you provided no information...
Title: Re: disqualified from the event
Post by: kennedyarz on Jun 07, 2018, 12:08 AM
Quote from: Shadow on Jun 06, 2018, 08:43 PMMaybe your intention was to negate the return value of InPoly, as in, you meant to add a '!' before it. Just a thought, I can't really understand why your code _doesn't work_ because you provided no information...
hahahahahhahaha (!)
Title: Re: disqualified from the event
Post by: umar4911 on Jun 07, 2018, 05:00 AM
if(!InPoly( player.Pos.x, player.Pos.y, -834.547, -386.178, -834.547, -385.178, -834.547, -384.365, -834.547, -383.319, -834.547, -382.178, -834.547, -381.6, -834.547, -380.35, -834.547, -379.334, -834.547, -378.318, -834.547, -377.287, -835.275, -376.645, -836.166, -376.645, -837.275, -376.645, -837.947, -376.645, -839.072, -376.645 ))
{
I_MSG("you have been desalified from the event", player);
player.World = 1;
}
Title: Re: disqualified from the event
Post by: NicusorN5 on Jun 08, 2018, 05:53 PM
Quote from: kennedyarz on Jun 07, 2018, 12:08 AM
Quote from: Shadow on Jun 06, 2018, 08:43 PMMaybe your intention was to negate the return value of InPoly, as in, you meant to add a '!' before it. Just a thought, I can't really understand why your code _doesn't work_ because you provided no information...
hahahahahhahaha (!)
???