17.11.2012, 01:48
Bom, eu estava fazendo um comando de tipo /beber ai almentava sua life so que tipo ele almenta pa so que uma sу vez por gmx por cada vez que o gm e reiniciado eu queria que ele acumula-se tipo voce tava com 10 de life ia e dava /beber refrigerante ele ia e almentava sua life tipo sua life tava 10 voce ia e dava /beber que cada /beber almenta 20 de life ai ficava 30 voce dava dnv ficava 50 voce dava denovo e ficava 70 tipo que acumula nada de setar o life pra 10 tudo mais o code й esse
/\ ondialogresponse
Alguem ajuda ae por favor, agradeзo desde jб!
pawn Код:
if(response)
{
switch(dialogid)
{
case 1:
{
switch(listitem)
{
case 0: // Produto Nє 1
{
if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, 0xFFFFFF, "Vocк Nгo Tкm Dinheiro Suficiente!"); // Se Ele Nгo Tiver Dinheiro, Nгo Pode Comprar
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 50.0)
SetPlayerHealth(playerid, 50.0);
GivePlayerMoney(playerid, -50); // Para Tirar Dinheiro Ao Jogador
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK); // Para Aparecer 1 Garrafa/Copo Na Mгo Do Jogador
SendClientMessage(playerid, 0xff5555ff, "Vocк Gastou R$50,00."); // Manda Mensagem Ao Jogador.
return 0;
}
Alguem ajuda ae por favor, agradeзo desde jб!