24.06.2013, 09:51
Hello, this is my /buydrink command.
I would like to know what I add under...
to all of the players in that interior
Any help would be appreciated. Thank you
EDIT: Knowing that there are more then 1 club interiors in my server, I will have to set other clubs a different interior. if I'm using if(GetPlayerInterior(playerid) > 17) will this command also work in club interiors that I have changed the virtual world?
Код:
CMD:buydrink(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 28, 498.7181,-19.5918,1000.6797)) { if(GetPlayerInterior(playerid) > 17) { new string[128] format(string, sizeof(string), "%s approaches the bar, slipping some cash out of his pocket and placing it on the bench", GetPlayerName(playerid); ShowPlayerDialog(playerid, DIALOGDRINKS, DIALOG_STYLE_LIST, "Hello, what can I get you today?","Smirnoff\nBombay\nGoon\nBeer\nRose\nWater\nSprunk","Buy drink","Cancel"); return 1; } } return 0; }
Quote:
format(string, sizeof(string), "%s approaches the bar, slipping some cash out of his pocket and placing it on the bench", GetPlayerName(playerid); |
Any help would be appreciated. Thank you
EDIT: Knowing that there are more then 1 club interiors in my server, I will have to set other clubs a different interior. if I'm using if(GetPlayerInterior(playerid) > 17) will this command also work in club interiors that I have changed the virtual world?