06.01.2014, 23:49
Hey Guys i'm using U:RP script i have a little problem actually when i map in game, everything is good but it's hard to find the object/model id The CMD shows only one object/model id, so i wanna make/objectsaround // which will show objects of 2 meters radius
of X,Y,Z position.
I mean it will catch objects of X.Y.Z 2 meters radius.
here is the code
of X,Y,Z position.
I mean it will catch objects of X.Y.Z 2 meters radius.
here is the code
Код:
if(strcmp(cmd, "/objectid", true) == 0) { if(PlayerInfo[playerid][pAdmin] < 1339 && !IsAMapper(playerid)) return SendClientMessage(playerid,GREY,"You're not authorized to use this command."); new house = IsPlayerNearObject(playerid); if(house == -1) return SendClientMessage(playerid,GREY, " You must be near the object you wish to check the ID of."); format(string, sizeof(string), "* Object ID: %d - Model ID: %d",house,ObjectInfo[house][objModel]); SendClientMessage(playerid, LIGHTBLUE, string); return 1; }