Вот несколько команд: [pwn]if(strcmp(cmd, "/menu", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new Float:health;
if(PlayerToPoint(15,playerid,368.9718,-6.6316,1001.8516))//Cluckin' Bell
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_WHITE, "|_____________ Cluckin' Bell Value Meals ______________|");
SendClientMessage(playerid, COLOR_WHITE, "*Èñïîëüçóéòå: /menu [item number]");
SendClientMessage(playerid, COLOR_GREY, "Drinks: [1]Water:($1), [2]Sprunk:($1)");
SendClientMessage(playerid, COLOR_GREY, "[3]'lil Clucker:($2), [4]Bucket o' Chicken:($5),");
SendClientMessage(playerid, COLOR_GREY, "[5]Chicken Nuggetz:($2), [6]Chicken Sandwich:($4),");
SendClientMessage(playerid, COLOR_GREY, "[7]Chicken Salad:($3) (Our employees tossed the salad in the kitchen)");
SendClientMessage(playerid, COLOR_YELLOW, "Straight from the factories: Taste the Cock!");
SendClientMessage(playerid, COLOR_WHITE, "|______________________________________________________|");
return 1;
}
else if(strcmp(x_nr,"1",true) == 0||strcmp(x_nr,"2",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 1);
SetPlayerHealth(playerid, health + 10.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s drinks from their cup.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
GivePlayerMoney(playerid, - 1);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s drinks from their cup.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(strcmp(x_nr,"3",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 2);
SetPlayerHealth(playerid, health + 30.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats his kid's meal and plays with the little toy that came with it.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
GivePlayerMoney(playerid, - 2);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats his kid's meal and plays with the little toy that came with it.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(strcmp(x_nr,"4",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 5);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats some crispy fried chicken from the bucket.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
GivePlayerMoney(playerid, - 5);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats some crispy fried chicken from the bucket.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(strcmp(x_nr,"5",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 2);
SetPlayerHealth(playerid, health + 20.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats some crispy chicken nuggets from their cup.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
GivePlayerMoney(playerid, - 2);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats some crispy chicken nuggets from their cup.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(strcmp(x_nr,"6",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 4);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats a spicy chicken sandwich with mayo and lettuce.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
GivePlayerMoney(playerid, - 4);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats a spicy chicken sandwich with mayo and lettuce.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(strcmp(x_nr,"7",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 3);
SetPlayerHealth(playerid, health + 50.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats the freshly tossed salad from the bowl (with a fork of course).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
GivePlayerMoney(playerid, - 3);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats the freshly tossed salad from the bowl (with a fork of course).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
else if(PlayerToPoint(15,playerid,375.3066,-118.8028,1001.4995))//Well Stacked Pizza
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_WHITE, "|___________ Well Stacked Pizza Biggie Meals ____________|");
SendClientMessage(playerid, COLOR_WHITE, "*Èñïîëüçóéòå: /menu [item number]");
SendClientMessage(playerid, COLOR_GREY, "Drinks: [1]Water:($1), [2]Sprunk:($1)");
SendClientMessage(playerid, COLOR_GREY, "[3]'lil Sicilian:($2), [4]Sheet Pizza:($5),");
SendClientMessage(playerid, COLOR_GREY, "[5]Breadsticks:($2), [6]Personal Pan Pizza:($4)");
SendClientMessage(playerid, COLOR_GREY, "[7]Pepperoni Salad:($3) (Pepperoni, Meatball, Tomato sauce salad!)");
SendClientMessage(playerid, COLOR_RED, "Hot and greasy just like mama likes it!");
SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
return 1;
}
else if(strcmp(x_nr,"1",true) == 0||strcmp(x_nr,"2",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 1);
SetPlayerHealth(playerid, health + 10.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s drinks from their cup.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
GivePlayerMoney(playerid, - 1);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s drinks from their cup.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(strcmp(x_nr,"3",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 2);
SetPlayerHealth(playerid, health + 30.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats his kid's meal and plays with the little toy that came with it.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
GivePlayerMoney(playerid, - 2);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats his kid's meal and plays with the little toy that came with it.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(strcmp(x_nr,"4",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 5);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats a few slice from their sheet pizza.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
GivePlayerMoney(playerid, - 5);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats a few slices from their sheet pizza.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(strcmp(x_nr,"5",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 2);
SetPlayerHealth(playerid, health + 20.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats some some crispy breadsticks from their cup.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
GivePlayerMoney(playerid, - 2);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats some crispy breadsticks from their cup.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(strcmp(x_nr,"6",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 4);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats a personal pan pizza.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
GivePlayerMoney(playerid, - 4);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats a personal pan pizza.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(strcmp(x_nr,"7",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 3);
SetPlayerHealth(playerid, health + 50.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats the freshly tossed salad from the bowl (with a fork of course).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
GivePlayerMoney(playerid, - 3);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats the freshly tossed salad from the bowl (with a fork of course).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
else if(PlayerToPoint(15,playerid,376.5994,-67.4428,1001.5078))//Burgershot
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_WHITE, "|_______________ Burgershot Super Meals _______________|");
SendClientMessage(playerid, COLOR_WHITE, "*Èñïîëüçóéòå: /menu [item number]");
SendClientMessage(playerid, COLOR_GREY, "Drinks: [1]Water:($1), [2]Sprunk:($1)");
SendClientMessage(playerid, COLOR_GREY, "[3]'lil Sharp Shooter:($2), [4]DP Sandwich (Double Patty):($5),");
SendClientMessage(playerid, COLOR_GREY, "[5]French fries:($2), [6]Cheeseburger:($4)");
SendClientMessage(playerid, COLOR_GREY, "[7]Beefy Salad:($3) (We put our meat in just for you)");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Also try our Money Shot Menu (All items 69 cents!)");
SendClientMessage(playerid, COLOR_WHITE, "|______________________________________________________|");
return 1;
}
else if(strcmp(x_nr,"1",true) == 0||strcmp(x_nr,"2",true) == 0)
{
if(GetPlayerHealth(playerid, health) < 100)
{
GivePlayerMoney(playerid, - 1);
SetPlayerHealth(playerid, health + 10.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s d
Добавлено (25.02.2009, 07:39)
---------------------------------------------
[pwn]if(strcmp(cmd, "/icecream", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtStall(playerid))
{
if(PlayerFull[playerid] < 10)
{
new Float:health;
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_WHITE, "|________________ Cherry Popper Ice Creams _______________|");
SendClientMessage(playerid, COLOR_WHITE, "*Èñïîëüçóéòå: /icecream [icecreamname]");
SendClientMessage(playerid, COLOR_GREY, "Small Ice Creams: Fab ($4), Milkpop ($8), 99 ($9)");
SendClientMessage(playerid, COLOR_GREY, "Medium Ice Creams: Screwball ($14), Magnum ($18)");
SendClientMessage(playerid, COLOR_GREY, "Large Ice Creams: Knickerbocker ($24), Nipplewhipple ($30)");
SendClientMessage(playerid, COLOR_RED, "Don't eat too much, or you will vomit.");
SendClientMessage(playerid, COLOR_WHITE, "|_________________________________________________________|");
return 1;
}
if(strcmp(x_nr,"fab",true) == 0)
{
SafeGivePlayerMoney(playerid, - 1);
PlayerFull[playerid] += 1;
if(PlayerFull[playerid] >= 5) { GameTextForPlayer(playerid, "~w~You are~n~~p~Full", 3500, 1); }
GetPlayerHealth(playerid, health);
if(health < 100)
{
if(PlayerInfo[playerid][pPainPerk] > 0) { PlayerFull[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pPainPerk]; hp += 7; SetPlayerHealth(playerid, health + hp); }
else { SetPlayerHealth(playerid, health + 3.0); }
}
}
else if(strcmp(x_nr,"milkpop",true) == 0)
{
SafeGivePlayerMoney(playerid, - 2);
PlayerFull[playerid] += 1;
if(PlayerFull[playerid] >= 5) { GameTextForPlayer(playerid, "~w~You are~n~~p~Full", 3500, 1); }
GetPlayerHealth(playerid, health);
if(health < 100)
{
if(PlayerInfo[playerid][pPainPerk] > 0) { PlayerFull[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pPainPerk]; hp += 15; SetPlayerHealth(playerid, health + hp); }
else { SetPlayerHealth(playerid, health + 8.0); }
}
}
else if(strcmp(x_nr,"99",true) == 0)
{
SafeGivePlayerMoney(playerid, - 3);
PlayerFull[playerid] += 1;
if(PlayerFull[playerid] >= 5) { GameTextForPlayer(playerid, "~w~You are~n~~p~Full", 3500, 1); }
GetPlayerHealth(playerid, health);
if(health < 100)
{
if(PlayerInfo[playerid][pPainPerk] > 0) { PlayerFull[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pPainPerk]; hp += 20; SetPlayerHealth(playerid, health + hp); }
else { SetPlayerHealth(playerid, health + 10.0); }
}
}
else if(strcmp(x_nr,"screwball",true) == 0)
{
SafeGivePlayerMoney(playerid, - 5);
PlayerFull[playerid] += 2;
if(PlayerFull[playerid] >= 5) { GameTextForPlayer(playerid, "~w~You are~n~~p~Full", 3500, 1); }
GetPlayerHealth(playerid, health);
if(health < 100)
{
if(PlayerInfo[playerid][pPainPerk] > 0) { PlayerFull[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pPainPerk]; hp += 25; SetPlayerHealth(playerid, health + hp); }
else { SetPlayerHealth(playerid, health + 18.0); }
}
}
else if(strcmp(x_nr,"magnum",true) == 0)
{
SafeGivePlayerMoney(playerid, - 6);
PlayerFull[playerid] += 2;
if(PlayerFull[playerid] >= 5) { GameTextForPlayer(playerid, "~w~You are~n~~p~Full", 3500, 1); }
GetPlayerHealth(playerid, health);
if(health < 100)
{
if(PlayerInfo[playerid][pPainPerk] > 0) { PlayerFull[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pPainPerk]; hp += 30; SetPlayerHealth(playerid, health + hp); }
else { SetPlayerHealth(playerid, health + 24.0); }
}
}
else if(strcmp(x_nr,"knickerbocker",true) == 0)
{
SafeGivePlayerMoney(playerid, - 7);
PlayerFull[playerid] += 3;
if(PlayerFull[playerid] >= 5) { GameTextForPlayer(playerid, "~w~You are~n~~p~Full", 3500, 1); }
GetPlayerHealth(playerid, health);
if(health < 100)
{
if(PlayerInfo[playerid][pPainPerk] > 0) { PlayerFull[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pPainPerk]; hp += 35; SetPlayerHealth(playerid, health + hp); }
else { SetPlayerHealth(playerid, health + 27.0); }
}
}
else if(strcmp(x_nr,"nipplewhipple",true) == 0)
{
SafeGivePlayerMoney(playerid, - 8);
PlayerFull[playerid] += 3;
if(PlayerFull[playerid] >= 5) { GameTextForPlayer(playerid, "~w~You are~n~~p~Full", 3500, 1); }
GetPlayerHealth(playerid, health);
if(health < 100)
{
if(PlayerInfo[playerid][pPainPerk] > 0) { PlayerFull[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pPainPerk]; hp += 40; SetPlayerHealth(playerid, health + hp); }
else { SetPlayerHealth(playerid, health + 30.0); }
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Cherry Popper Man: We don't sell that Ice Cream.");
return 1;
}
GetPlayerHealth(playerid, health);
if (health > 100) SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s eats a delicious %s.", sendername ,x_nr);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "*Âû íå ìîæåòå ñúåñòü áîëüøå!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Âû íå îñòàíîâèëñÿ íåïîäàëåêó. Ïåðåéäèòå â DMV èëè òàêñè ñòàíöèè â ÑÔ!");
return 1;
}
}
return 1;
}[/pwn]