Bicas

Untitled

Jul 11th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. DIALOG->CMD_KVIESTI(playerid, response, listitem, inputtext[])
  2. {
  3.     new
  4.         masyvas[128]
  5.     ;
  6.     YES
  7.     {
  8.         switch(listitem)
  9.         {
  10.             case 0: // taksi
  11.             {
  12.                 format(masyvas, sizeof(masyvas), "%s kviečia taksi, rašyk /vaziuoju %s", GetPlayerNameEx(playerid), GetPlayerNameEx(playerid));
  13.                 PLAYER->pIskvietimas(playerid) = DARBAS_TAKSI;
  14.                 foreach(new i : Player)
  15.                 {
  16.                     if(PLAYER->pDarbas(i) == DARBAS_TAKSI)
  17.                     {
  18.                         SendTaksiMSG(i, masyvas);
  19.                     }
  20.                 }
  21.             }
  22.         }
  23.     }
  24.     return true;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment