09.10.2011, 21:02
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/Cardapio", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,1507.8744,-1714.6392,14.0469))
{
SendClientMessage(playerid,0xFF0000AA,"Comidas:");
SendClientMessage(playerid,0xFF0000AA,"/Pastel R$20,00,/Coxinha R$20,00,/Enroladinho R$20,00,/Paodequeijo R$15,00,");
SendClientMessage(playerid,0xFF0000AA,"/Paodesal R$15,00,/Salgadinho R$15,00,/Bolacha R$15,00");
SendClientMessage(playerid,0xFF0000AA,"Frutas:");
SendClientMessage(playerid,0xFF0000AA,"/Morango R$25,00,/Pera R$25,00,/Maзa R$25,00,/uva R$25,00.");
return 1;
}
return 1;
}
if(strcmp(cmdtext, "/Pastel", true))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
{
GivePlayerMoney(playerid, -20);
SendClientMessage(playerid,0xFF0000AA,"Voзe comeu um pastel");
SetPlayerHealth(playerid, 100);
return 1;
}
return 1;
}
if(!strcmp("/Coxinha", cmdtext,true))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
{
GivePlayerMoney(playerid, -20);
SendClientMessage(playerid,0xFF0000AA,"Voзe comeu uma coxinha");
SetPlayerHealth(playerid, 100);
return 1;
}
return 1;
}
if(!strcmp("/Enroladinho", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
{
GivePlayerMoney(playerid, -20);
SendClientMessage(playerid,0xFF0000AA,"Voзe comeu um enroladinho");
SetPlayerHealth(playerid, 100);
return 1;
}
return 1;
} if(!strcmp("/Paodequeijo", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
{
GivePlayerMoney(playerid, -15);
SendClientMessage(playerid,0xFF0000AA,"Voзe comeu um pao de queijo");
SetPlayerHealth(playerid, 100);
return 1;
}
return 1;
}
if(!strcmp("/Paodesal", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469)) return GivePlayerMoney(playerid, -15),SendClientMessage(playerid,0xFF0000AA,"Voзe comeu um pao de sal"),SetPlayerHealth(playerid, 100);
return 1;
}
if(!strcmp("/Salgadinho", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
{
GivePlayerMoney(playerid, -15);
SendClientMessage(playerid,0xFF0000AA,"Voзe comeu um salgadinho");
SetPlayerHealth(playerid, 100);
return 1;
}
return 1;
}
if(!strcmp("/Bolacha", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
{
GivePlayerMoney(playerid, -15);
SendClientMessage(playerid,0xFF0000AA,"Voзe comeu uma bolacha");
SetPlayerHealth(playerid, 100);
return 1;
}
return 1;
}
if(!strcmp("/Morango", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
{
GivePlayerMoney(playerid, -25);
SendClientMessage(playerid,0xFF0000AA,"Voзe comeu um morango");
SetPlayerHealth(playerid, 100);
return 1;
}
return 1;
}
if(!strcmp("/Pera", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
{
GivePlayerMoney(playerid, -25);
SendClientMessage(playerid,0xFF0000AA,"Voзe comeu uma pera");
SetPlayerHealth(playerid, 100);
return 1;
}
return 1;
}
if(!strcmp("/Maзa", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
{
GivePlayerMoney(playerid, -25);
SendClientMessage(playerid,0xFF0000AA,"Voзe comeu uma maзa");
SetPlayerHealth(playerid, 100);
}
return 1;
}
if(!strcmp("/Uva", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
{
GivePlayerMoney(playerid, -25);
SendClientMessage(playerid,0xFF0000AA,"Voзe comeu uma uma uva");
SetPlayerHealth(playerid, 100);
return 1;
}
return 1;
}
return 0;
}
#Identa ai.