Quote:
if(strcmp(cmd, "/createt", true) == 0) { new Float:editor[3]; GetPlayerPos(playerid,editor[0],editor[1],editor[2]); CreateDynamicObject(3383, editor[0]+1, editor[1]-3, editor[2]-1, 0.0,0.0,0.0, -1, -1, -1, 100.0); //object(a51_labtable1_) (1) CreateDynamicObject(2891, editor[0]+1, editor[1]-2.5, editor[2], 0.0,0.0,0.0, -1, -1, -1, 100.0);//object(kmb_packet) (1) CreateDynamicObject(2891, editor[0]+1.2, editor[1]-2.5, editor[2], 0.0,0.0,0.0, -1, -1, -1, 100.0);//object(kmb_packet) (1) CreateDynamicObject(2891, editor[0]+1.1, editor[1]-2.5, editor[2]+0.2, 0.0,0.0,0.0, -1, -1, -1, 100.0);//object(kmb_packet) (1) CreateDynamicObject(2901, editor[0], editor[1]-3, editor[2]+0.3, 0.0,0.0,0.0, -1, -1, -1, 100.0);//object(kmb_marijuana) (1) } ///===== if(strcmp(cmd, "/makedrugs", true) == 0) { new Float:editor[3]; GetObjectPos(3383, editor[0], editor[1], editor[2]); if(IsPlayerInRangeOfPoint(playerid, 7.0, editor[0], editor[1], editor[2])) { SendClientMessage(playerid, COLOR_RED,"ok"COL_WHITE": you near table"); return 1; } else { SendClientMessage(playerid, COLOR_RED,"error"COL_WHITE": you aren't near table"); return 1; } } |
problem is when used /makedrugs it respond error you aren't near table , how to fix ? thx
Aucun commentaire:
Enregistrer un commentaire