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 ) );
}
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 :-\
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
pickup.Pos = Lastmanremaining.Pos; ?
nah yaar if one player remain then pickup create there like this
if ( democount == 1 ) CreatePickup( 384, Vector( -1761.91, -220.306, 14.8683 ) );
Lol Shawn i made that for derby but without pickup if player count becomes 1 he will be winner
sorry but i didn't check your derby function let me check
same there was 2 players playing when 1 player remain other one quit no one wins ???
You don't make any sense. What are you trying to do, and what errors are you getting?
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.
I think he's trying to create a racing system ???
@Doom_Killer he said that you helped him (http://forum.vc-mp.org/?topic=1131.msg7545#msg7545)
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.
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