Command only in interior, how to make? - 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: Command only in interior, how to make? (
/showthread.php?tid=79428)
Command only in interior, how to make? -
Jakku - 28.05.2009
Hello!
I have following command, and I want players can do it only in interior 4.
pawn Код:
if(strcmp(cmd, "/menu", true) == 0) {
SendClientMessage(playerid, COLOR_GREEN,"Restaurant Menu:");
SendClientMessage(playerid, COLOR_YELLOW,"Two Big Stakes With Potato (10.00$) = /bswp");
SendClientMessage(playerid, COLOR_ORANGE,"Salmon with salad and juice (7.50$)");
return 1;
}
Re: Command only in interior, how to make? -
Weirdosport - 28.05.2009
If(GetPlayerInterior(playerid) == 4)
Re: Command only in interior, how to make? -
Jakku - 28.05.2009
Thanks man