How to check this ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to check this ? (
/showthread.php?tid=196307)
How to check this ? -
QuaTTrO - 05.12.2010
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
Re: How to check this ? -
Zimon95 - 05.12.2010
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!
Re: How to check this ? -
Flyfishes - 05.12.2010
Agree.
Код:
GetPlayerIMGObject(playerid, objectmodel);
maybe?
Re: How to check this ? -
BloodyEric - 05.12.2010
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.
Re: How to check this ? -
QuaTTrO - 05.12.2010
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[]);