silverms

SkyDive

Apr 2nd, 2017
331
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Sky Dive System Made By Silverms/Jack_Minner
  2. #include <a_samp>
  3. #include <zcmd>
  4.  
  5. new Float:Sx[MAX_PLAYERS], Float:Sy[MAX_PLAYERS], Float:Sz[MAX_PLAYERS];
  6.  
  7. CMD:skydive(playerid, params[])
  8. {
  9.     if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You Are In Vehicle Exit It First");
  10.     if(GetPlayerWantedLevel(playerid) >=1) return SendClientMessage(playerid, COLOR_RED, "You Are Wanted Lose Your Wanted Level First!");
  11.     new name[MAX_PLAYER_NAME], string[256];
  12.     GetPlayerName(playerid, name, sizeof(name));
  13.     GivePlayerWeapon(playerid, 46, 999);
  14.     SetPlayerArmedWeapon(playerid, 46);
  15.     GetPlayerPos(playerid, Float:Sx[playerid], Float:Sy[playerid], Float:Sz[playerid]);
  16.     SetPlayerPos(playerid, Float:Sx[playerid], Float:Sy[playerid], Float:Sz[playerid]+500);
  17.     SendClientMessage(playerid, COLOR_RED, "Welcome To Sky Dive");
  18.     GetPlayerName(playerid, name, 24);
  19.     format(string, sizeof(string), "%s joined skydive Join Him /skydive", name);
  20.     SendClientMessageToAll(COLOR_BLUE, string);
  21.     return 1;
  22. }
RAW Paste Data