Hydra Ejection System
#1

Код:
if (strcmp("/eject", cmdtext, true, 10) == 0)
  {
  new newcar = GetPlayerVehicleID(playerid);
  if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520)
  {
    GivePlayerWeapon(playerid,46,1);
   	GetPlayerPos(playerid, x,y,z);
    SetPlayerPos(playerid,x,y,z+30);
  }
  else
  {
  SendClientMessage(playerid, COLOR_RED, "You Are Not In A Hydra");
  }
  return 1;
  }
Ejection seat

Shoot You up in the sky and gives u a para
Reply
#2

http://forum.sa-mp.com/index.php?topic=2868.0
Reply
#3

Useless....
Reply
#4

because of?
Reply
#5

You`ll never use this....

Before a crash,
you do not have the time to type "/eject" !
Change it, so you have to press 2 (for example), this would be more useful, but even easy.

If your just starting scripting, its a good trainig....
Reply
#6

remember to add in: RemovePlayerFromVehicle or else i think theyll crash. (the game)
Reply
#7

why u give the player weps i dont know and you must add RemovePlayerFromVehicle(playerid,...)
because what the other dude said was right lol then he wouldnt budge. and try to assign a specific key under OnPlayerKeyStateChange. oO
Reply
#8

Quote:

why u give the player weps

its the parachute
Reply
#9

why dont u try it it auto kicks u out?
Reply
#10

Quote:
Originally Posted by Trooper[Y
]
Quote:

why u give the player weps

its the parachute
ah i usually do pickups as parachutes.
Reply
#11

Your indentation needs some work.

And in the time it takes the person to type /eject, they could have just tried to maneuver around the obstacle. It'd be better if you used keys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)