25.12.2010, 08:00
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
And my /detach just aint working either :S
Any help?
Thanks In Advanced!
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;
}
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;
}
Thanks In Advanced!