[HELP] Attach/Detach Stairs
#1

Im having trouble with my "OnStairsAttachToBaggade" callback i want it so when "Trailer ID" 608 (Airport Stairs) attaches to the baggade it sends the a GameText,Its just not working

Any Help

pawn Код:
forward OnStairsAttachToBaggade(playerid,vehicleid);
public OnStairsAttachToBaggade(playerid,vehicleid)
{
    if(GetVehicleTrailer(IsTrailerAttachedToVehicle(608)))
    {
    GameTextForPlayer(playerid,"\n\n\n\n\n~w~Stairs ~g~Attached!",3000,5);
    }
    return 1;
}
And my /detach just aint working either :S

pawn Код:
CMD:detach(playerid, params[])
{
    if(!IsPlayerInVehicle(playerid, 485))
    {
        SendClientMessage(playerid,RED,"You Need To Be In A Baggade To Attach/Detach Stairs!");
    }
    if(GetVehicleTrailer(IsTrailerAttachedToVehicle(806)))
    {
    new stairs;
    stairs = IsTrailerAttachedToVehicle(608);
    DetachTrailerFromVehicle(stairs);
    GameTextForPlayer(playerid,"\n\n\n\n\n~w~Stairs ~g~Detached!",3000,5);
    }
    else
    {
        SendClientMessage(playerid,RED,"There Are No Stairs Attached!");
    }
    return true;
}
Any help?

Thanks In Advanced!
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: 2 Guest(s)