[HELP] Attach/Detach Stairs
#3

hehe well you mixed up an ID:
if(GetVehicleTrailer(IsTrailerAttachedToVehicle(80 6)))

you should use 608 if I'm right:P

EDIT: lol I didn't read it right... this should work:
Код:
CMD:detach(playerid, params[])
{
    if(!IsPlayerInVehicle(playerid, 485))
    {
        SendClientMessage(playerid,RED,"You Need To Be In A Baggade To Attach/Detach Stairs!");
    }
    new vid = GetVehicleTrailer(GetPlayerVehicleID(playerid));
    if(GetVehicleModel(vid) == 608)
    {
    DetachTrailerFromVehicle(vid);
    GameTextForPlayer(playerid,"\n\n\n\n\n~w~Stairs ~g~Detached!",3000,5);
    }
    else
    {
        SendClientMessage(playerid,RED,"There Are No Stairs Attached!");
    }
    return true;
}
Reply


Messages In This Thread
[HELP] Attach/Detach Stairs - by <Weponz> - 25.12.2010, 08:00
Re: [HELP] Attach/Detach Stairs - by Haydz - 25.12.2010, 08:09
Re: [HELP] Attach/Detach Stairs - by Sascha - 25.12.2010, 08:26
Re: [HELP] Attach/Detach Stairs - by <Weponz> - 25.12.2010, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)