Advertisement
Vh_Script

Untitled

May 13th, 2022
1,786
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
IDL 5.05 KB | None | 0 1
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. enum pInfo
  5. {
  6.     pEmprego
  7. };
  8. new Player[MAX_PLAYERS][pInfo];
  9.  
  10. #define Dialog_Empregos            0
  11.  
  12. main()
  13. {
  14.     print("\n----------------------------------");
  15.     print(" OLÁ MUNDO");
  16.     print("----------------------------------\n");
  17. }
  18.  
  19.  
  20. public OnGameModeInit()
  21. {
  22.     DisableInteriorEnterExits();
  23.     ShowPlayerMarkers(0);
  24.     UsePlayerPedAnims();
  25.     EnableStuntBonusForAll(0);
  26.    
  27.     //PICCK UPS,Create3DTextLabel
  28.     Create3DTextLabel("{0080FF}Agencia de Empregos\n Use /entrar", -1, 1154.0143,-1772.6775,16.5992, 30.0,0);
  29.     CreatePickup(1318, 1, 1154.0143,-1772.6775,16.5992);
  30.  
  31.     Create3DTextLabel("{0080FF}Agencia de Empregos\n Use /sair", -1, 1494.4794,1303.5790,1093.2891, 30.0,0);
  32.     CreatePickup(1318, 1, 1494.4794,1303.5790,1093.2891);
  33.  
  34.     Create3DTextLabel("{0080FF}Agencia de Empregos\n Use /empregos", -1, 1490.3009,1305.7084,1093.2964, 30.0,0);
  35.     CreatePickup(1210, 1, 1490.3009,1305.7084,1093.2964);
  36.  
  37.     CreateActor(228, 1489.0399,1305.7617,1093.2964,275.9632); // npc
  38.     return 1;
  39. }
  40.  
  41. public OnGameModeExit()
  42. {
  43.     return 1;
  44. }
  45.  
  46. public OnPlayerRequestClass(playerid, classid)
  47. {
  48.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  49.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  50.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  51.     return 1;
  52. }
  53.  
  54. public OnPlayerConnect(playerid)
  55. {
  56.     return 1;
  57. }
  58.  
  59. public OnPlayerDisconnect(playerid, reason)
  60. {
  61.     return 1;
  62. }
  63.  
  64. public OnPlayerSpawn(playerid)
  65. {
  66.     return 1;
  67. }
  68.  
  69. public OnPlayerDeath(playerid, killerid, reason)
  70. {
  71.     return 1;
  72. }
  73.  
  74. public OnVehicleSpawn(vehicleid)
  75. {
  76.     return 1;
  77. }
  78.  
  79. public OnVehicleDeath(vehicleid, killerid)
  80. {
  81.     return 1;
  82. }
  83.  
  84. public OnPlayerText(playerid, text[])
  85. {
  86.     return 1;
  87. }
  88.  
  89. public OnPlayerCommandText(playerid, cmdtext[])
  90. {
  91.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  92.     {
  93.         // Do something here
  94.         return 1;
  95.     }
  96.     return 0;
  97. }
  98.  
  99. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  100. {
  101.     return 1;
  102. }
  103.  
  104. public OnPlayerExitVehicle(playerid, vehicleid)
  105. {
  106.     return 1;
  107. }
  108.  
  109. public OnPlayerStateChange(playerid, newstate, oldstate)
  110. {
  111.     return 1;
  112. }
  113.  
  114. public OnPlayerEnterCheckpoint(playerid)
  115. {
  116.     return 1;
  117. }
  118.  
  119. public OnPlayerLeaveCheckpoint(playerid)
  120. {
  121.     return 1;
  122. }
  123.  
  124. public OnPlayerEnterRaceCheckpoint(playerid)
  125. {
  126.     return 1;
  127. }
  128.  
  129. public OnPlayerLeaveRaceCheckpoint(playerid)
  130. {
  131.     return 1;
  132. }
  133.  
  134. public OnRconCommand(cmd[])
  135. {
  136.     return 1;
  137. }
  138.  
  139. public OnPlayerRequestSpawn(playerid)
  140. {
  141.     return 1;
  142. }
  143.  
  144. public OnObjectMoved(objectid)
  145. {
  146.     return 1;
  147. }
  148.  
  149. public OnPlayerObjectMoved(playerid, objectid)
  150. {
  151.     return 1;
  152. }
  153.  
  154. public OnPlayerPickUpPickup(playerid, pickupid)
  155. {
  156.     return 1;
  157. }
  158.  
  159. public OnVehicleMod(playerid, vehicleid, componentid)
  160. {
  161.     return 1;
  162. }
  163.  
  164. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  165. {
  166.     return 1;
  167. }
  168.  
  169. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  170. {
  171.     return 1;
  172. }
  173.  
  174. public OnPlayerSelectedMenuRow(playerid, row)
  175. {
  176.     return 1;
  177. }
  178.  
  179. public OnPlayerExitedMenu(playerid)
  180. {
  181.     return 1;
  182. }
  183.  
  184. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  185. {
  186.     return 1;
  187. }
  188.  
  189. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  190. {
  191.     return 1;
  192. }
  193.  
  194. public OnRconLoginAttempt(ip[], password[], success)
  195. {
  196.     return 1;
  197. }
  198.  
  199. public OnPlayerUpdate(playerid)
  200. {
  201.     return 1;
  202. }
  203.  
  204. public OnPlayerStreamIn(playerid, forplayerid)
  205. {
  206.     return 1;
  207. }
  208.  
  209. public OnPlayerStreamOut(playerid, forplayerid)
  210. {
  211.     return 1;
  212. }
  213.  
  214. public OnVehicleStreamIn(vehicleid, forplayerid)
  215. {
  216.     return 1;
  217. }
  218.  
  219. public OnVehicleStreamOut(vehicleid, forplayerid)
  220. {
  221.     return 1;
  222. }
  223.  
  224. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  225. {
  226.     if(dialogid == Dialog_Empregos)
  227.     {
  228.         if(response)
  229.         {
  230.              if(listitem == 0)//leitero
  231.              {
  232.                if(Player[playerid][pEmprego] < 0) return  SendClientMessage(playerid, -1,"[ERRO] Voce Ja Tem Um Emprego!");//verificar se ele ja tem um emprego
  233.                Player[playerid][pEmprego] = 1;
  234.                SendClientMessage(playerid, -1, "Parabens Agora Voce E Um Leitero");
  235.              }
  236.         }
  237.     }
  238.     return 1;
  239. }
  240.  
  241. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  242. {
  243.     return 1;
  244. }
  245.  
  246. CMD:ir(playerid)
  247. {
  248.    SetPlayerPos(playerid, 1153.9458,-1772.6786,16.599);
  249.    return 1;
  250. }
  251.  
  252. CMD:entrar(playerid)
  253. {
  254.     if(IsPlayerInRangeOfPoint(playerid, 2.0,1153.9458,-1772.6786,16.5992))
  255.     {
  256.         SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062);
  257.         SetPlayerInterior(playerid, 3);
  258.     }
  259.     return 1;
  260. }
  261. CMD:sair(playerid)
  262. {
  263.     if(IsPlayerInRangeOfPoint(playerid, 2.0, 1494.4794,1303.5790,1093.2891))
  264.     {
  265.         SetPlayerPos(playerid, 1153.9458,-1772.6786,16.5992);
  266.         SetPlayerInterior(playerid, 0);
  267.     }
  268.     return 1;
  269. }
  270.  
  271. CMD:empregos(playerid)
  272. {
  273.    if(IsPlayerInRangeOfPoint(playerid, 3.0, 1490.3009,1305.7084,1093.2964))
  274.    {
  275.     ShowPlayerDialog(playerid, Dialog_Empregos,DIALOG_STYLE_LIST,"EMPREGOS","Leitero","Selesionar","Fechar");
  276.     SendClientMessage(playerid, -1,"Voce Esta Vendo Os Empregos!");
  277.    }
  278.    else
  279.    SendClientMessage(playerid, -1,"Voce Nao Esta Em Uma Porta!");
  280.    return 1;
  281. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement