Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Jul 4th, 2009 | Syntax: C++ | Size: 0.91 KB | Hits: 9 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. if(strcmp(cmd,"/venderarmas",true) == 0)
  2. {
  3.         new plid;
  4.         tmp = strtok(cmdtext,idx);
  5.         plid = strval(tmp);
  6.         if(!strlen(tmp))
  7.         {
  8.                 SendClientMessage(playerid, COLOR_RED,"/venderarmas [ID]");
  9.                 return 1;
  10.         }
  11.         if(Gang[playerid] == ASSASSINOS || IsPlayerAdmin(playerid))
  12.         {
  13.                 if(packarmas[plid] == 0)
  14.                 {
  15.                         GivePlayerWeapon(plid,25,9999);
  16.                         GivePlayerWeapon(plid,32,9999);
  17.                         GivePlayerWeapon(plid,30,9999);
  18.                         GivePlayerWeapon(plid,24,9999);
  19.                         GivePlayerWeapon(plid,4,9999);
  20.                         GivePlayerWeapon(plid,34,9999);
  21.                         SendClientMessage(playerid,COLOR_ASSASSINOS,"Pack de armas Vendido :)");
  22.                         SendClientMessage(plid,COLOR_YELLOW,"Você Recebeu Armas.");
  23.                         packarmas[plid] = 1;
  24.                 }
  25.                 else
  26.                 {
  27.                         return SendClientMessage(playerid,COLOR_ASSASSINOS,"O Indivíduo já tem Pack de armas ¬¬");
  28.                 }
  29.         }
  30.         else
  31.         {
  32.                 return SendClientMessage(playerid,COLOR_ASSASSINOS,"Você nao é um Assassino ou Admin.");
  33.         }
  34.         return 1;
  35. }