PDA

View Full Version : [HELP]/buy command


JBee
07/03/2015, 02:40 AM
http://forum.sa-mp.com/attachment.php?attachmentid=8827&stc=1&d=1425614872
This is mine server [.::. Los Santos Stories RPG .::.]


http://forum.sa-mp.com/attachment.php?attachmentid=8828&stc=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".

http://forum.sa-mp.com/attachment.php?attachmentid=8829&stc=1&d=1425615543
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....

maramizo
07/03/2015, 02:52 AM
Show me the command which you enter the 24/7 with and the /buy command.

X337
07/03/2015, 02:56 AM
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;
}