12.06.2015, 04:49
Код:
enum RopeInfo { Float: RRX, Float: RRY, Float: RRZ, }; new RopeInformation[MAX_PLAYERS][RopeInfo]; YCMD:climbrope(playerid, params[], help) { SetTimerEx("destroyrope",9000, false,"ddddd", CreateDynamicObject(19089, RopeInformation[playerid][RRX], RopeInformation[playerid][RRY], RopeInformation[playerid][RRZ]+5, 0, 0, Angle), CreateDynamicObject(19089, RopeInformation[playerid][RRX], RopeInformation[playerid][RRY], RopeInformation[playerid][RRZ]+3, 0, 0, Angle), CreateDynamicObject(19089, RopeInformation[playerid][RRX], RopeInformation[playerid][RRY], RopeInformation[playerid][RRZ]+2, 0, 0, Angle), CreateDynamicObject(19089, RopeInformation[playerid][RRX], RopeInformation[playerid][RRY], RopeInformation[playerid][RRZ]+1, 0, 0, Angle), CreateDynamicObject(19089, RopeInformation[playerid][RRX], RopeInformation[playerid][RRY], RopeInformation[playerid][RRZ]-5, 0, 0, Angle) ); } forward destroyrope(obj1,obj2,obj3,obj4,obj5); public destroyrope(obj1,obj2,obj3,obj4,obj5) { DestroyDynamicObject(obj1); DestroyDynamicObject(obj2); DestroyDynamicObject(obj3); DestroyDynamicObject(obj4); DestroyDynamicObject(obj5); }