Simple Help
#1

Hi, I have made a simple skydive system that should when player type a command make him skydive so it is working fine and it put him in location and every thing but sometimes he can open the parachute sometimes not why?
here is the code:
PHP код:
CMD:skydive(playeridparams[])
{
    if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridCOLOR_RED"You Are In Vehicle Exit It First");
    if(
GetPlayerWantedLevel(playerid) >=1) return SendClientMessage(playeridCOLOR_RED"You Are Wanted Lose Your Wanted Level First!");
    new 
name[MAX_PLAYER_NAME], string[256];
     
GetPlayerName(playeridnamesizeof(name));
     
GetPlayerPos(playeridFloat:Sx[playerid], Float:Sy[playerid], Float:Sz[playerid]);
     
SetPlayerPos(playeridFloat:Sx[playerid], Float:Sy[playerid], Float:Sz[playerid]+500);
     
GivePlayerWeapon(playerid46999);
     
SendClientMessage(playeridCOLOR_RED"Welcome To Sky Dive");
     
GetPlayerName(playeridname24);
     
format(stringsizeof(string), "%s joined skydive Join Him /skydive"name);
     
SendClientMessageToAll(COLOR_BLUEstring);
     return 
1;

Reply


Messages In This Thread
Simple Help - by silverms - 01.04.2017, 21:54
Re: Simple Help - by AndreiWow - 01.04.2017, 22:11
Re: Simple Help - by silverms - 01.04.2017, 22:11
Re: Simple Help - by AndreiWow - 01.04.2017, 22:14
Re: Simple Help - by silverms - 01.04.2017, 22:25
Re: Simple Help - by coool - 02.04.2017, 06:14
Re: Simple Help - by silverms - 02.04.2017, 06:43

Forum Jump:


Users browsing this thread: 1 Guest(s)