Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: xxxSharKsxxx on February 25, 2013, 01:24:38 pm

Title: Skyfall Command
Post by: xxxSharKsxxx on February 25, 2013, 01:24:38 pm
   else if ( strcmp( cmd, "!skyfall", true ) == 0 )
   {
      SetPlayerPos(playerid,-1026.66992, -168.38638, 921.51873 );
             format( szMsg, 128, "** pm>> %s Is Now In SkyFallZone, Type !skyfall To Fall from sky",gPlayers[playerid] );
      SendClientMessageToAll( BLUE, szMsg );
      GameTextForPlayer( playerid, "Skyfall" );
      SendClientMessage( playerid, BLUE, " = Skyfall =" );
      return 1;
   }
ENJOY :)
Title: Re: Skyfall Command
Post by: VC[88]PD on February 25, 2013, 01:26:17 pm
it's a very easy cmd but Good Job
Title: Re: Skyfall Command
Post by: xxxSharKsxxx on February 25, 2013, 04:04:01 pm
thanks :)
Title: Re: Skyfall Command
Post by: mrockxkingbutt on February 25, 2013, 04:10:35 pm
GOOD FOR YOU :D
Title: Re: Skyfall Command
Post by: MatheuS on February 25, 2013, 10:18:24 pm
easy command

 ;D
Title: Re: Skyfall Command
Post by: kitt85711 on April 21, 2013, 10:05:29 pm
It's been a long as time since I've scripted so I'm going to try this to make it better.

(Ive tried to put the code in here but I forgot how to do it but I know how its done)

If you want people to spawn in the coordinates that you place hey thats fine but if people want to "skydive" where there at you have to define xyz with a float. Float: X, Float: Y, Float: Z;
Then GetPlayerPos of the player who said the command and then SetPlayerPos(playerid, x, y, z); With z I think, not totally sure but with z you can control how high that player is. Ex: SetPlayerPos(playerid, x, y, z+5); This is how I would make my slap command with a bit of drunk level.