PutPlayerInVehicle
#10

above on gamemode init:


new v1;
new v2;
new v3;
new v4;
new v5;
new v6;
new v7;
new v8;

new score[1]; // we will use this to see how many people are in the dm

(if you want more people joining your dm add more of these)
Код:
if(strcmp(cmdtext, "/minigame", true == 0)
{ 
   if(score[0] == 0)
   {
     v1 = CreateVehicle(model, float:x, float:y, float:z, x, y, z); // note that the last three are the vehicles Z AXIS
     PutPlayerInVehicle(playerid, v1, 0);
     SendClientMessage(playerid,COLOR_RED,"Welcome to the minigame. You Have Spawned in a vehicle");
     SetPlayerWorld(playerid, 200);
     Score[1] += 1;
   }
   (do this right up to score == the number of players you want in your dm)
   else
   {
     SendClientMessage(playerid,COLOR_RED,"We're Sorry, That DeathMatch Zone Is Full At The Moment");
   }
Dont Forget, we need to lower the DM count of players upon leaving the deathmatch, this can be done using playerinfo, read about some of the other topics ive posted in for more on this.


Reply


Messages In This Thread
PutPlayerInVehicle - by Outbreak - 22.02.2009, 18:15
Re: PutPlayerInVehicle - by Outbreak - 23.02.2009, 21:19
Re: PutPlayerInVehicle - by Outbreak - 28.02.2009, 21:19
Re: PutPlayerInVehicle - by Outbreak - 02.03.2009, 00:12
Re: PutPlayerInVehicle - by Outbreak - 06.03.2009, 17:33
Re: PutPlayerInVehicle - by wiZaK - 07.03.2009, 22:21
Re: PutPlayerInVehicle - by Redirect Left - 08.03.2009, 01:49
Re: PutPlayerInVehicle - by Outbreak - 08.03.2009, 01:52
Re: PutPlayerInVehicle - by Redirect Left - 08.03.2009, 05:44
Re: PutPlayerInVehicle - by hazdog - 08.03.2009, 05:49
Re: PutPlayerInVehicle - by Redirect Left - 08.03.2009, 05:50
Re: PutPlayerInVehicle - by hazdog - 08.03.2009, 05:53
Re: PutPlayerInVehicle - by Outbreak - 08.03.2009, 10:50
Re: PutPlayerInVehicle - by [RP]Rav - 08.03.2009, 10:55
Re: PutPlayerInVehicle - by Outbreak - 08.03.2009, 11:11

Forum Jump:


Users browsing this thread: 1 Guest(s)