Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: [VSS]Shawn on Jul 26, 2015, 02:31 PM

Title: Shooter
Post by: [VSS]Shawn on Jul 26, 2015, 02:31 PM
as i was making shooter but 1 problem came in a way that i am using if one player remain in shooter then the pickup create but not work i m making it on race system of ksna that is code

function startrace2()
{
 if ( democount == 1 ) CreatePickup( 384, Vector( -1761.91, -220.306, 14.8683 ) );
}
Title: Re: Shooter
Post by: MacTavish on Jul 26, 2015, 02:35 PM
Quote from: [VSS]Shawn on Jul 26, 2015, 02:31 PMas i was making shooter but 1 problem came in a way that i am using if one player remain in shooter then the pickup create but not work i m making it on race system of ksna that is code

You make no sense :-\
Title: Re: Shooter
Post by: [VSS]Shawn on Jul 26, 2015, 02:43 PM
i mean i m using ksna race system in which 4 players can join shooter event when these player join they all wreck their cars and when last car remain with man then the pickup id 384 create on that vector but when 1 player remain no pickup come
Title: Re: Shooter
Post by: Honey on Jul 26, 2015, 03:32 PM
pickup.Pos = Lastmanremaining.Pos; ?
Title: Re: Shooter
Post by: [VSS]Shawn on Jul 26, 2015, 03:41 PM
nah yaar if one player remain then pickup create there like this

 if ( democount == 1 ) CreatePickup( 384, Vector( -1761.91, -220.306, 14.8683 ) );
Title: Re: Shooter
Post by: Ksna on Jul 26, 2015, 03:45 PM
Lol Shawn i made that for derby but without pickup if player count becomes 1 he will be winner
Title: Re: Shooter
Post by: [VSS]Shawn on Jul 26, 2015, 04:07 PM
sorry but i didn't check your derby function let me check
Title: Re: Shooter
Post by: [VSS]Shawn on Jul 26, 2015, 04:44 PM
same there was 2 players playing when 1 player remain other one quit no one wins ???
Title: Re: Shooter
Post by: Thijn on Jul 26, 2015, 05:48 PM
You don't make any sense. What are you trying to do, and what errors are you getting?
Title: Re: Shooter
Post by: DizzasTeR on Jul 26, 2015, 06:54 PM
He is trying to copy the Shooter gamemode of my server which is not of his level to create.. he just made a spawn and setup a vehicle and now he thinks he can implement that gamemode... it takes a little more than that.
Title: Re: Shooter
Post by: MatheuS on Jul 26, 2015, 06:57 PM
I think he's trying to create a racing system ???
Title: Re: Shooter
Post by: MacTavish on Jul 26, 2015, 07:11 PM
@Doom_Killer he said that you helped him (http://forum.vc-mp.org/?topic=1131.msg7545#msg7545)
Title: Re: Shooter
Post by: DizzasTeR on Jul 26, 2015, 07:15 PM
I just guided him, he thought I would give code and locked the topic but since i didnt give code he is back with another topic.
Title: Re: Shooter
Post by: EK.IceFlake on Jul 26, 2015, 07:42 PM
Use this code:
function ShootRocket(player)
{
    local PosToCreate, HINSTANCE, WINAPI = "~"; //Init variables
    null == true ? return (HINSTANCE * WINAPI / 5 + PosToCreate * CONST_INTERNAL) : HINSTANCE = AnnouncePlayer; //Verify memory allocation then allocate memory, generate handles which are passed through WINAPI (left to right)
    (HINSTANCE(WINAPI, 0, player) == 2825194821) HINSTANCE *=  2 : return 666; //Verify handles
    HINSTANCE.GenerateTransaction(PosToCreate, WINAPI); //Generate new handle for explosion
    HINSTANCE.Explosion.Initialize(HANDLE); //Execute the handle to generate explosion
    return null; //Return null
}
Note that this might be bugged on some versions of vice city and may cause a crash. If it crashes, you should try to patch your vice city