Stretcher Command
#4

Alright try this

Код:
CMD:stretcher(playerid, params[]) 
{ 
    static 
        type[24], 
        Float:x, 
        Float:y, 
        Float:z, 
        Float:angle; 
         
    if (GetFactionType(playerid) != FACTION_MEDIC) 
        return SendErrorMessage(playerid, "You do not have permission to use this command."); 
     
    if (!strcmp(type, "get", true)) 
    { 
        for (new i = 0; i != MAX_VEHICLES; i ++) if (IsPlayerNearBoot(playerid, i) && GetVehicleModel(i) == 416) 
        { 
            SetPlayerAttachedObject(playerid, 1, 1997, 1, -1.106504, 1.504988, 0.031584, 0.000000, 89.566635, 0.000000); 
        } 
    } 
    if (!strcmp(type, "drop", true)) 
    { 
        GetPlayerPos(playerid, x, y, z); 
        GetPlayerFacingAngle(playerid, angle); 
        RemovePlayerAttachedObject(playerid, 1); 
        CreateObject(1997, x, y, z-1, 0.0, 0.0, 0.0, 50.0); 
        SetObjectRot(objectid, x, y, angle);
        SetPlayerPos(playerid, x-1, y, z); 
    } 
    return 1; 
}
Reply


Messages In This Thread
Stretcher Command - by LucasAdams - 06.09.2015, 18:56
Re: Stretcher Command - by Fancy - 06.09.2015, 19:01
Re: Stretcher Command - by LucasAdams - 06.09.2015, 19:02
Re: Stretcher Command - by Fancy - 06.09.2015, 19:07
Re: Stretcher Command - by LucasAdams - 06.09.2015, 19:14
AW: Stretcher Command - by Nero_3D - 06.09.2015, 21:26
Re: AW: Stretcher Command - by Luke_James - 06.09.2015, 22:01
AW: Re: AW: Stretcher Command - by Nero_3D - 06.09.2015, 22:13

Forum Jump:


Users browsing this thread: 1 Guest(s)