12.06.2015, 04:55
Quote:
Код:
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); } |
This wont work,
If 2 people use this command at the same time
It will only destroy the 2nd persons objects...
hence why I need to save it in the enum