Advertisement
Codigos

[TUT] Criando Loja de Armas em Dialog

May 19th, 2012
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.57 KB | None | 0 0
  1. if (dialogid == armasdaloja)  
  2. {
  3.  if(response)
  4.          {
  5.            if(listitem == 0) // isso significa que se o player escolher a deagle .
  6.            {
  7.           if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, 0xFFFFFF, "Voce nao tem dinheiro suficiente"); // se ele nao tiver 500 , retorna essa mensagem!
  8.           GivePlayerMoney(playerid, -500); // caso contrario vai cobrar 500 .
  9.           GivePlayerWeapon(playerid, 24, 99999); // ea deagle vai vir com 99999 balas !
  10.           return 0;
  11.            }
  12.          }
  13. }
  14. return 1;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement