[HELP]/buy command - 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)
+--- Thread: [HELP]/buy command (
/showthread.php?tid=566591)
[HELP]/buy command -
JBee - 07.03.2015
This is mine server [.:†:. Los Santos Stories RPG .:†:.©]
http://forum.sa-mp.com/attachment.ph...1&d=1425615201
When i use /buy command a list of items pop up it making my server non roleplay, if you're not in a 24/7 store
I want a Server to say "You're not at a 24/7 store".
But if you are in a 24/7 store, the server will say "Welcome to the 24//7 store /buy" How can i do that.
Can i PLZ! get an example how to do or something....
Re: [HELP]/buy command -
maramizo - 07.03.2015
Show me the command which you enter the 24/7 with and the /buy command.
Re: [HELP]/buy command -
X337 - 07.03.2015
You can use OnPlayerInteriorChange()
here is for example :
Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if(newinteriorid == changethis) //change to your 24/7 interior ID
{
SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to the 24/7 store /buy");
}
return 1;
}