SA-MP Forums Archive
[SUGGESION]Checking whether the object is installed - 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: [SUGGESION]Checking whether the object is installed (/showthread.php?tid=196344)



[SUGGESTION]Checking whether the object is installed - QuaTTrO - 05.12.2010

Hi, Please add the function through which the object will check whether the player is installed in samp.img

Example functions:

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

IsPlayerIMGObjectInstalledEx(playerid,objectname[]);

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

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


Re: [SUGGESION]Checking whether the object is installed - legodude - 05.12.2010

good suggestions but i don't think it will be possible(correct me if im wrong)


Re: [SUGGESION]Checking whether the object is installed - BLAbla93 - 05.12.2010

its possible but I think kalcor has stated that he does not want haft to force people to install your mods into the gta3.img if they do not want to.


Re: [SUGGESION]Checking whether the object is installed - DRIFT_HUNTER - 05.12.2010

I think its better to have server side IMG file that will be limited to about 10mb
And when you connect to server you download that IMG,IDE,COL to temponary folder


Re: [SUGGESION]Checking whether the object is installed - DaKill - 05.12.2010

Yes, good sugestions.