Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started 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 :)
-
it's a very easy cmd but Good Job
-
thanks :)
-
GOOD FOR YOU :D
-
easy command
;D
-
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.