25.12.2010, 08:26
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:
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; }