KaLu17

CMD:sprobuj / CMD:try

Aug 18th, 2014
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.17 KB | None | 0 0
  1. CMD:sprobuj(playerid, params[])
  2. {
  3.     new text[128], string[256];
  4.     if(sscanf(params, "s[128]", text))
  5.     {
  6.         frp_Tip(playerid, "/sprobuj [Akcja np. podnieść ciężarek]");
  7.         return 1;
  8.     }
  9.     new loss = random(2);
  10.     switch(loss)
  11.     {
  12.         case 0:
  13.         {
  14.             if(PlayerCache[playerid][pSex] == 1)
  15.             {
  16.                 format(string, sizeof(string), "zawiódł próbując %s", text);
  17.                 ProxDetector(10.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
  18.             }
  19.             else
  20.             {
  21.                 format(string, sizeof(string), "zawiodła próbując %s", text);
  22.                 ProxDetector(10.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
  23.             }
  24.         }
  25.         case 1:
  26.         {
  27.             if(PlayerCache[playerid][pSex] == 1)
  28.             {
  29.                 format(string, sizeof(string), "odniósł sukces próbując %s", text);
  30.                 ProxDetector(10.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
  31.             }
  32.             else
  33.             {
  34.                 format(string, sizeof(string), "odniosła sukces próbując %s", text);
  35.                 ProxDetector(10.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
  36.             }
  37.         }
  38.     }
  39.     return 1;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment