Advertisement
kerts93

tabloo jura 2

Oct 9th, 2011
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.68 KB | None | 0 0
  1. public OnPlayerCommandText(playerid,cmdtext[])
  2. {//---------------------------------------------------------------------------------TABLOO KÄSKLUS
  3.     if(!strcmp(cmdtext,"/tabloo", true))
  4.     {
  5.         ShowPlayerDialog(playerid, tabloo, DIALOG_STYLE_LIST, "Vali bussi tabloo:", "1 Los Santose Keskjaam\n1 Ida-Ranniku\n2 Grove\n2 Los Santose Keskjaam\n3 Los Santose Keskjaam\n3 Sadam\n4 Santa Marina\n4 Los Santose Keskjaam\n5 Vinewood\n5 Los Santose Keskjaam\nTellitud\nÕppesõit\nLSAK", "Vali", "Tühista");
  6.         return 1;
  7.     }
  8.     return 1;
  9. }
  10.  
  11. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  12. {
  13.     if(dialogid == 1000)
  14.     {
  15.         if(response)
  16.         {
  17.             if(listitem == 0)
  18.             {
  19.                 new vehicle_id, Text3D:tabloo;
  20.                 tabloo = Create3DTextLabel("1 Los Santose Keskjaam",0x66CC00FF,1141.34, -1389.88, 15.06,30.0,0);
  21.                 //Creating the Vehicle
  22.                 vehicle_id = GetPlayerVehicleID(playerid);
  23.                 //Attaching Text Label To Vehicle
  24.                 Attach3DTextLabelToVehicle( tabloo, vehicle_id, 0.0, 0.0, 2.0);
  25.                 SendClientMessage(playerid, 0x66CC00FF, "Tabloo muudetud!" );
  26.             }
  27.             else if(listitem == 1)
  28.             {
  29.                 new vehicle_id, Text3D:tabloo;
  30.                 tabloo = Create3DTextLabel("1 Ida-Ranniku",0x66CC00FF,1141.34, -1389.88, 15.06,30.0,0);
  31.                 //Creating the Vehicle
  32.                 vehicle_id = GetPlayerVehicleID(playerid);
  33.                 //Attaching Text Label To Vehicle
  34.                 Attach3DTextLabelToVehicle( tabloo, vehicle_id, 0.0, 0.0, 2.0);
  35.                 SendClientMessage(playerid, 0x66CC00FF, "Tabloo muudetud!" );
  36.             }
  37.         }
  38.         return 1;
  39.     }
  40.     return 1;
  41. }
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement