02.08.2015, 14:28
Код:
Код: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; }