How to check this ?
#1

Is there a feature whereby I can check if the player has installed an object in your file samp.img?

if not I would ask for the creation of such a function
Reply
#2

Quote:
Originally Posted by __[ShaDoW]__
Посмотреть сообщение
Is there a feature whereby I can check if the player has installed an object in your file samp.img?

if not I would ask for the creation of such a function
Yeah, I think this function is ESSENTIAL!
Reply
#3

Agree.
Код:
GetPlayerIMGObject(playerid, objectmodel);
maybe?
Reply
#4

The best would be to return the filesize of the img file, so the server could easily check whether the player has his img file or an older version of it or none.
Reply
#5

IsPlayerIMGObjectInstalled(playerid,modelid_in_sam pimg);

Example:
pawn Код:
if(!IsPlayerIMGObjectInstalled(playerid,17892)){
SendClientMessage(playerid,color,"Object not found please download object from website");
}
Or/And

IsPlayerIMGObjectInstalled(playerid,objectname[]);

Example:
pawn Код:
if(!IsPlayerIMGObjectInstalled(playerid,"FishingRod.dff")){
SendClientMessage(playerid,color,"Object not found please download object from website");
}
And

GetPlayerIMGObjectSize(playerid,objectid_from_samp img);
GetPlayerIMGObjectSizeEx(playerid,objectname[]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)