/GETRRK NOT WORKING PERFECT
#1

Код:
Код:
CMD:getrrk(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
	{
	    if(IsPlayerInAnyVehicle(playerid))
	    {
	        new inscar = GetPlayerVehicleID(playerid), inseat;
	        if(!(GetVehicleModel(inscar) == 416)) { SendClientMessage(playerid, COLOR_GREY, "   You must be inside an ambulance !"); return 1; }
	        inseat = GetPlayerVehicleSeat(playerid);
	        if(inseat == 2 || inseat == 3)
	        {
	            if(HasARapidResKit[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "   You already have a Rapid Response Kit, '/pickrrk' in order to pick it up."); return 1; }
	            RemovePlayerFromVehicle(playerid);
	            SetTimerEx("GetResponseKit", 1500, false, "i", playerid);
           		format(string, sizeof(string), "* You have succesfully dragged the Rapid Response Kit from the ambulance.");
	            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
	            format(string, sizeof(string), "* Paramedic %s drags the Rapid Response Kit from the back of the ambulance.", PlayerRPName(playerid));
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "   You must be in the rear of the ambulance in order to use this  !");
			}
		}
		else
		{
		    SendClientMessage(playerid, COLOR_GREY, "   You are not inside a vehicle !");
		}
	}
	else
	{
		SendClientMessage(playerid, COLOR_GREY, "   You are not a Paramedic !");
	}
	return 1;
}
I NEED TO HELP IN THIS IF SERVER START ITS SOMETIME WORK BUT NOT ALL TIME AND AFTER USE 1 TIME ITS WORK ANYMORE PLZ HELP {SORRY FOR MY BAD ENGLISH}
Reply


Messages In This Thread
/GETRRK NOT WORKING PERFECT - by manpreet_singh - 02.08.2015, 14:28
Re: /GETRRK NOT WORKING PERFECT - by xVIP3Rx - 02.08.2015, 14:35
Re: /GETRRK NOT WORKING PERFECT - by manpreet_singh - 02.08.2015, 14:46
Re: /GETRRK NOT WORKING PERFECT - by xVIP3Rx - 02.08.2015, 14:47
Re: /GETRRK NOT WORKING PERFECT - by manpreet_singh - 02.08.2015, 15:01
Re: /GETRRK NOT WORKING PERFECT - by Puppy - 02.08.2015, 15:02
Re: /GETRRK NOT WORKING PERFECT - by manpreet_singh - 02.08.2015, 15:06
Re: /GETRRK NOT WORKING PERFECT - by xVIP3Rx - 02.08.2015, 15:07
Re: /GETRRK NOT WORKING PERFECT - by manpreet_singh - 02.08.2015, 15:12
Re: /GETRRK NOT WORKING PERFECT - by manpreet_singh - 02.08.2015, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)