if(IsAtClothShop(playerid)) - 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: if(IsAtClothShop(playerid)) (
/showthread.php?tid=273604)
if(IsAtClothShop(playerid)) -
-CaRRoT - 02.08.2011
can i make like this : if(IsAtClothShop(playerid)) in ammunation ? like if(IsAtAmmunation(playerid)) or something like that
Re: if(IsAtClothShop(playerid)) -
Niixie - 02.08.2011
Sure you can something like
Код:
forward IsAtClothShop(playerid);
public IsAtClothShop(playerid) {
if(IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy) { // Replace minx,y & maxx,y with the interior coords you got.
return 1;
} else {
return 0;
}
}
If player is in ClothShop (If coords is filled), returns 1, else 0.
Re: if(IsAtClothShop(playerid)) -
KfirRP - 02.08.2011
Well, you can make the IsAtAmmunation just like IsAtClothShop, but change the parameters like Interior, etc.