SHOW:
|
|
- or go back to the newest paste.
1 | /* | |
2 | ***************************************** | |
3 | * H H eeee m m pppp * | |
4 | * H H e m m m m p p * | |
5 | * HHHHH eee m m m m ppp * | |
6 | * H H e m m m p * | |
7 | * H H eeee m m p * | |
8 | ***************************************** System ® | |
9 | ||
10 | VERSÃO: [1.0] | |
11 | *************** | |
12 | ||
13 | |=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-| | |
14 | |=-=-=-=-=-=-=-=-=-=-=-=-=-=[hEmp System - Criado e Desenvolvido por: HeyHoLetsGo]=-=-=-=-=-=-=-=-=-=-=-=-=| | |
15 | |=-=-=-=-=-=-=-=-=-=-=-=-=-=[Créditos ao Tonisaltolia por BETA Tester + Ajuda ]=-=-=-=-=-=-=-=-=-=-=-=-=| | |
16 | |=-=-=-=-=-=-=-=-=-=-=-=-=-=[Visite: forum.sa-mp.com | NÃO RETIRE OS CRÉDITOS! ]=-=-=-=-=-=-=-=-=-=-=-=-=| | |
17 | |=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-| | |
18 | ||
19 | */ | |
20 | ||
21 | #include a_samp | |
22 | #include ZCMD | |
23 | #include DOF2 | |
24 | ||
25 | #define DIALOG_VALOR_EMP (1) | |
26 | #define DIALOG_EMP_INT_ID (2) | |
27 | #define DIALOG_INT_ID (3) | |
28 | #define DIALOG_EXTORCAO (4) | |
29 | #define DIALOG_PICKUP (5) | |
30 | #define DIALOG_NOME (6) | |
31 | #define DIALOG_INT_CHOOSE1 (7) | |
32 | #define DIALOG_INT_CHOOSE2 (8) | |
33 | #define DIALOG_CONCLUSAO (9) | |
34 | #define DIALOG_SALDO_EMP (10) | |
35 | #define DIALOG_COMPRAR_EMP (11) | |
36 | #define DIALOG_VENDER_EMP (12) | |
37 | #define DIALOG_DELETAR_EMP (13) | |
38 | #define DIALOG_INFOS_EMP (14) | |
39 | #define DIALOG_INFOS_EMP_SHOW (15) | |
40 | #define DIALOG_CREDITOS (16) | |
41 | #define DIALOG_EDIT_LIST (18) | |
42 | #define DIALOG_EDITAR_EMP (19) | |
43 | #define DIALOG_EDIT_DONO (20) | |
44 | #define DIALOG_EDIT_NOME (21) | |
45 | #define DIALOG_EDIT_VALOR (22) | |
46 | #define DIALOG_EDIT_INTERIOR (23) | |
47 | #define DIALOG_EDIT_EXTORCAO (24) | |
48 | #define DIALOG_EDIT_PICKUP (25) | |
49 | #define DIALOG_EDIT_COFRE (26) | |
50 | #define DIALOG_AJUDA_EMP (27) | |
51 | ||
52 | enum EnumEmp | |
53 | { | |
54 | Float:X, | |
55 | Float:Y, | |
56 | Float:Z, | |
57 | ValorEmp, | |
58 | IntID, | |
59 | Extorcao, | |
60 | Pickup, | |
61 | Float:UltimaPosX, | |
62 | Float:UltimaPosY, | |
63 | Float:UltimaPosZ, | |
64 | bool:DentroEmp, | |
65 | IDEmpPresente | |
66 | }; | |
67 | ||
68 | new InfosEmp[MAX_PLAYERS][EnumEmp],NomeEmp[64],IDEmp[MAX_PLAYERS],Text3D:IDTextEmp[999],EmpPickup[999]; | |
69 | ||
70 | public OnFilterScriptInit() | |
71 | { | |
72 | CarregarEmps(); | |
73 | print("\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="); | |
74 | print("hEmp System - Criador de empresas In-Game"); | |
75 | print("Criado por: HeyHoLetsGo | forum.sa-mp.com"); | |
76 | print("CARREGADO COM SUCESSO! Bom jogo!"); | |
77 | print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n"); | |
78 | return 1; | |
79 | } | |
80 | ||
81 | - | public OnPlayerDisconnect(playerid) |
81 | + | public OnFilterScriptExit() |
82 | { | |
83 | - | DOF2_Exit(); |
83 | + | DOF2_Exit(); |
84 | return 1; | |
85 | } | |
86 | ||
87 | public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) | |
88 | { | |
89 | if ((newkeys==KEY_SECONDARY_ATTACK)) | |
90 | { | |
91 | for(new e = 0; e <= 999; ++e) | |
92 | { | |
93 | new Emps[128]; | |
94 | format(Emps,sizeof(Emps),"Empresas/%d.ini",e); | |
95 | { | |
96 | if(IsPlayerInRangeOfPoint(playerid,2.0,DOF2_GetFloat(Emps,"X"),DOF2_GetFloat(Emps,"Y"),DOF2_GetFloat(Emps,"Z"))) | |
97 | { | |
98 | if(DOF2_GetInt(Emps,"IDInterior") == 0) | |
99 | { | |
100 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
101 | SetPlayerInterior(playerid,17); | |
102 | SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875); | |
103 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
104 | InfosEmp[playerid][DentroEmp] = true; | |
105 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
106 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
107 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
108 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
109 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
110 | GameTextForPlayer(playerid,GameText,4000,1); | |
111 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
112 | break; | |
113 | } | |
114 | if(DOF2_GetInt(Emps,"IDInterior") == 1) | |
115 | { | |
116 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
117 | SetPlayerInterior(playerid,10); | |
118 | SetPlayerPos(playerid,6.091179,-29.271898,1003.549438); | |
119 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
120 | InfosEmp[playerid][DentroEmp] = true; | |
121 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
122 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
123 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
124 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
125 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
126 | GameTextForPlayer(playerid,GameText,4000,1); | |
127 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
128 | break; | |
129 | } | |
130 | if(DOF2_GetInt(Emps,"IDInterior") == 2) | |
131 | { | |
132 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
133 | SetPlayerInterior(playerid,18); | |
134 | SetPlayerPos(playerid,-30.946699,-89.609596,1003.546875); | |
135 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
136 | InfosEmp[playerid][DentroEmp] = true; | |
137 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
138 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
139 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
140 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
141 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
142 | GameTextForPlayer(playerid,GameText,4000,1); | |
143 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
144 | break; | |
145 | } | |
146 | if(DOF2_GetInt(Emps,"IDInterior") == 3) | |
147 | { | |
148 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
149 | SetPlayerInterior(playerid,16); | |
150 | SetPlayerPos(playerid,-25.132598,-139.066986,1003.546875); | |
151 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
152 | InfosEmp[playerid][DentroEmp] = true; | |
153 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
154 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
155 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
156 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
157 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
158 | GameTextForPlayer(playerid,GameText,4000,1); | |
159 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
160 | break; | |
161 | } | |
162 | if(DOF2_GetInt(Emps,"IDInterior") == 4) | |
163 | { | |
164 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
165 | SetPlayerInterior(playerid,4); | |
166 | SetPlayerPos(playerid,-27.312299,-29.277599,1003.557250); | |
167 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
168 | InfosEmp[playerid][DentroEmp] = true; | |
169 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
170 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
171 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
172 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
173 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
174 | GameTextForPlayer(playerid,GameText,4000,1); | |
175 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
176 | break; | |
177 | } | |
178 | if(DOF2_GetInt(Emps,"IDInterior") == 5) | |
179 | { | |
180 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
181 | SetPlayerInterior(playerid,6); | |
182 | SetPlayerPos(playerid,-26.691598,-55.714897,1003.546875); | |
183 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
184 | InfosEmp[playerid][DentroEmp] = true; | |
185 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
186 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
187 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
188 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
189 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
190 | GameTextForPlayer(playerid,GameText,4000,1); | |
191 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
192 | break; | |
193 | } | |
194 | if(DOF2_GetInt(Emps,"IDInterior") == 6) | |
195 | { | |
196 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
197 | SetPlayerInterior(playerid,14); | |
198 | SetPlayerPos(playerid,-1827.147338,7.207417,1061.143554); | |
199 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
200 | InfosEmp[playerid][DentroEmp] = true; | |
201 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
202 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
203 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
204 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
205 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
206 | GameTextForPlayer(playerid,GameText,4000,1); | |
207 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
208 | break; | |
209 | } | |
210 | if(DOF2_GetInt(Emps,"IDInterior") == 7) | |
211 | { | |
212 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
213 | SetPlayerInterior(playerid,14); | |
214 | SetPlayerPos(playerid,-1861.936889,54.908092,1061.143554); | |
215 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
216 | InfosEmp[playerid][DentroEmp] = true; | |
217 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
218 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
219 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
220 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
221 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
222 | GameTextForPlayer(playerid,GameText,4000,1); | |
223 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
224 | break; | |
225 | } | |
226 | if(DOF2_GetInt(Emps,"IDInterior") == 8) | |
227 | { | |
228 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
229 | SetPlayerInterior(playerid,1); | |
230 | SetPlayerPos(playerid,1.808619,32.384357,1199.593750); | |
231 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
232 | InfosEmp[playerid][DentroEmp] = true; | |
233 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
234 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
235 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
236 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
237 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
238 | GameTextForPlayer(playerid,GameText,4000,1); | |
239 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
240 | break; | |
241 | } | |
242 | if(DOF2_GetInt(Emps,"IDInterior") == 9) | |
243 | { | |
244 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
245 | SetPlayerInterior(playerid,9); | |
246 | SetPlayerPos(playerid,315.745086,984.969299,1958.919067); | |
247 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
248 | InfosEmp[playerid][DentroEmp] = true; | |
249 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
250 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
251 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
252 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
253 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
254 | GameTextForPlayer(playerid,GameText,4000,1); | |
255 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
256 | break; | |
257 | } | |
258 | if(DOF2_GetInt(Emps,"IDInterior") == 10) | |
259 | { | |
260 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
261 | SetPlayerInterior(playerid,1); | |
262 | SetPlayerPos(playerid,286.148986,-40.644397,1001.515625); | |
263 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
264 | InfosEmp[playerid][DentroEmp] = true; | |
265 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
266 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
267 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
268 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
269 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
270 | GameTextForPlayer(playerid,GameText,4000,1); | |
271 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
272 | break; | |
273 | } | |
274 | if(DOF2_GetInt(Emps,"IDInterior") == 11) | |
275 | { | |
276 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
277 | SetPlayerInterior(playerid,4); | |
278 | SetPlayerPos(playerid,286.800994,-82.547599,1001.515625); | |
279 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
280 | InfosEmp[playerid][DentroEmp] = true; | |
281 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
282 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
283 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
284 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
285 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
286 | GameTextForPlayer(playerid,GameText,4000,1); | |
287 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
288 | break; | |
289 | } | |
290 | if(DOF2_GetInt(Emps,"IDInterior") == 12) | |
291 | { | |
292 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
293 | SetPlayerInterior(playerid,6); | |
294 | SetPlayerPos(playerid,296.919982,-108.071998,1001.515625); | |
295 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
296 | InfosEmp[playerid][DentroEmp] = true; | |
297 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
298 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
299 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
300 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
301 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
302 | GameTextForPlayer(playerid,GameText,4000,1); | |
303 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
304 | break; | |
305 | } | |
306 | if(DOF2_GetInt(Emps,"IDInterior") == 13) | |
307 | { | |
308 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
309 | SetPlayerInterior(playerid,7); | |
310 | SetPlayerPos(playerid,314.820983,-141.431991,999.601562); | |
311 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
312 | InfosEmp[playerid][DentroEmp] = true; | |
313 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
314 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
315 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
316 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
317 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
318 | GameTextForPlayer(playerid,GameText,4000,1); | |
319 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
320 | break; | |
321 | } | |
322 | if(DOF2_GetInt(Emps,"IDInterior") == 14) | |
323 | { | |
324 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
325 | SetPlayerInterior(playerid,6); | |
326 | SetPlayerPos(playerid,316.524993,-167.706985,999.593750); | |
327 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
328 | InfosEmp[playerid][DentroEmp] = true; | |
329 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
330 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
331 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
332 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
333 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
334 | GameTextForPlayer(playerid,GameText,4000,1); | |
335 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
336 | break; | |
337 | } | |
338 | if(DOF2_GetInt(Emps,"IDInterior") == 15) | |
339 | { | |
340 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
341 | SetPlayerInterior(playerid,7); | |
342 | SetPlayerPos(playerid,302.292877,-143.139099,1004.062500); | |
343 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
344 | InfosEmp[playerid][DentroEmp] = true; | |
345 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
346 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
347 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
348 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
349 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
350 | GameTextForPlayer(playerid,GameText,4000,1); | |
351 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
352 | break; | |
353 | } | |
354 | if(DOF2_GetInt(Emps,"IDInterior") == 16) | |
355 | { | |
356 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
357 | SetPlayerInterior(playerid,7); | |
358 | SetPlayerPos(playerid,298.507934,-141.647048,1004.054748); | |
359 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
360 | InfosEmp[playerid][DentroEmp] = true; | |
361 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
362 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
363 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
364 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
365 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
366 | GameTextForPlayer(playerid,GameText,4000,1); | |
367 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
368 | break; | |
369 | } | |
370 | if(DOF2_GetInt(Emps,"IDInterior") == 17) | |
371 | { | |
372 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
373 | SetPlayerInterior(playerid,3); | |
374 | SetPlayerPos(playerid,1038.531372,0.111030,1001.284484); | |
375 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
376 | InfosEmp[playerid][DentroEmp] = true; | |
377 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
378 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
379 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
380 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
381 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
382 | GameTextForPlayer(playerid,GameText,4000,1); | |
383 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
384 | break; | |
385 | } | |
386 | if(DOF2_GetInt(Emps,"IDInterior") == 18) | |
387 | { | |
388 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
389 | SetPlayerInterior(playerid,12); | |
390 | SetPlayerPos(playerid,444.646911,508.239044,1001.419494); | |
391 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
392 | InfosEmp[playerid][DentroEmp] = true; | |
393 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
394 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
395 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
396 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
397 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
398 | GameTextForPlayer(playerid,GameText,4000,1); | |
399 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
400 | break; | |
401 | } | |
402 | if(DOF2_GetInt(Emps,"IDInterior") == 19) | |
403 | { | |
404 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
405 | SetPlayerInterior(playerid,15); | |
406 | SetPlayerPos(playerid,2215.454833,-1147.475585,1025.796875); | |
407 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
408 | InfosEmp[playerid][DentroEmp] = true; | |
409 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
410 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
411 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
412 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
413 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
414 | GameTextForPlayer(playerid,GameText,4000,1); | |
415 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
416 | break; | |
417 | } | |
418 | if(DOF2_GetInt(Emps,"IDInterior") == 20) | |
419 | { | |
420 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
421 | SetPlayerInterior(playerid,3); | |
422 | SetPlayerPos(playerid,833.269775,10.588416,1004.179687); | |
423 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
424 | InfosEmp[playerid][DentroEmp] = true; | |
425 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
426 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
427 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
428 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
429 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
430 | GameTextForPlayer(playerid,GameText,4000,1); | |
431 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
432 | break; | |
433 | } | |
434 | if(DOF2_GetInt(Emps,"IDInterior") == 21) | |
435 | { | |
436 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
437 | SetPlayerInterior(playerid,3); | |
438 | SetPlayerPos(playerid,-103.559165,-24.225606,1000.718750); | |
439 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
440 | InfosEmp[playerid][DentroEmp] = true; | |
441 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
442 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
443 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
444 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
445 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
446 | GameTextForPlayer(playerid,GameText,4000,1); | |
447 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
448 | break; | |
449 | } | |
450 | if(DOF2_GetInt(Emps,"IDInterior") == 22) | |
451 | { | |
452 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
453 | SetPlayerInterior(playerid,1); | |
454 | SetPlayerPos(playerid,963.418762,2108.292480,1011.030273); | |
455 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
456 | InfosEmp[playerid][DentroEmp] = true; | |
457 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
458 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
459 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
460 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
461 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
462 | GameTextForPlayer(playerid,GameText,4000,1); | |
463 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
464 | break; | |
465 | } | |
466 | if(DOF2_GetInt(Emps,"IDInterior") == 23) | |
467 | { | |
468 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
469 | SetPlayerInterior(playerid,6); | |
470 | SetPlayerPos(playerid,-2240.468505,137.060440,1035.414062); | |
471 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
472 | InfosEmp[playerid][DentroEmp] = true; | |
473 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
474 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
475 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
476 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
477 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
478 | GameTextForPlayer(playerid,GameText,4000,1); | |
479 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
480 | break; | |
481 | } | |
482 | if(DOF2_GetInt(Emps,"IDInterior") == 24) | |
483 | { | |
484 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
485 | SetPlayerInterior(playerid,0); | |
486 | SetPlayerPos(playerid,663.836242,-575.605407,16.343263); | |
487 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
488 | InfosEmp[playerid][DentroEmp] = true; | |
489 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
490 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
491 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
492 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
493 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
494 | GameTextForPlayer(playerid,GameText,4000,1); | |
495 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
496 | break; | |
497 | } | |
498 | if(DOF2_GetInt(Emps,"IDInterior") == 25) | |
499 | { | |
500 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
501 | SetPlayerInterior(playerid,1); | |
502 | SetPlayerPos(playerid,2169.461181,1618.798339,999.976562); | |
503 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
504 | InfosEmp[playerid][DentroEmp] = true; | |
505 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
506 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
507 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
508 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
509 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
510 | GameTextForPlayer(playerid,GameText,4000,1); | |
511 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
512 | break; | |
513 | } | |
514 | if(DOF2_GetInt(Emps,"IDInterior") == 26) | |
515 | { | |
516 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
517 | SetPlayerInterior(playerid,10); | |
518 | SetPlayerPos(playerid,1889.953369,1017.438293,31.882812); | |
519 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
520 | InfosEmp[playerid][DentroEmp] = true; | |
521 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
522 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
523 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
524 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
525 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
526 | GameTextForPlayer(playerid,GameText,4000,1); | |
527 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
528 | break; | |
529 | } | |
530 | if(DOF2_GetInt(Emps,"IDInterior") == 27) | |
531 | { | |
532 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
533 | SetPlayerInterior(playerid,1); | |
534 | SetPlayerPos(playerid,-2159.122802,641.517517,1052.381713); | |
535 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
536 | InfosEmp[playerid][DentroEmp] = true; | |
537 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
538 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
539 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
540 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
541 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
542 | GameTextForPlayer(playerid,GameText,4000,1); | |
543 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
544 | break; | |
545 | } | |
546 | if(DOF2_GetInt(Emps,"IDInterior") == 28) | |
547 | { | |
548 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
549 | SetPlayerInterior(playerid,15); | |
550 | SetPlayerPos(playerid,207.737991,-109.019996,1005.132812); | |
551 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
552 | InfosEmp[playerid][DentroEmp] = true; | |
553 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
554 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
555 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
556 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
557 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
558 | GameTextForPlayer(playerid,GameText,4000,1); | |
559 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
560 | break; | |
561 | } | |
562 | if(DOF2_GetInt(Emps,"IDInterior") == 29) | |
563 | { | |
564 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
565 | SetPlayerInterior(playerid,14); | |
566 | SetPlayerPos(playerid,204.332992,-166.694992,1000.523437); | |
567 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
568 | InfosEmp[playerid][DentroEmp] = true; | |
569 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
570 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
571 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
572 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
573 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
574 | GameTextForPlayer(playerid,GameText,4000,1); | |
575 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
576 | break; | |
577 | } | |
578 | if(DOF2_GetInt(Emps,"IDInterior") == 30) | |
579 | { | |
580 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
581 | SetPlayerInterior(playerid,3); | |
582 | SetPlayerPos(playerid,207.054992,-138.804992,1003.507812); | |
583 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
584 | InfosEmp[playerid][DentroEmp] = true; | |
585 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
586 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
587 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
588 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
589 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
590 | GameTextForPlayer(playerid,GameText,4000,1); | |
591 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
592 | break; | |
593 | } | |
594 | if(DOF2_GetInt(Emps,"IDInterior") == 31) | |
595 | { | |
596 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
597 | SetPlayerInterior(playerid,1); | |
598 | SetPlayerPos(playerid,203.777999,-48.492397,1001.804687); | |
599 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
600 | InfosEmp[playerid][DentroEmp] = true; | |
601 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
602 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
603 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
604 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
605 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
606 | GameTextForPlayer(playerid,GameText,4000,1); | |
607 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
608 | break; | |
609 | } | |
610 | if(DOF2_GetInt(Emps,"IDInterior") == 32) | |
611 | { | |
612 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
613 | SetPlayerInterior(playerid,5); | |
614 | SetPlayerPos(playerid,226.293991,-7.431529,1002.210937); | |
615 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
616 | InfosEmp[playerid][DentroEmp] = true; | |
617 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
618 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
619 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
620 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
621 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
622 | GameTextForPlayer(playerid,GameText,4000,1); | |
623 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
624 | break; | |
625 | } | |
626 | if(DOF2_GetInt(Emps,"IDInterior") == 33) | |
627 | { | |
628 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
629 | SetPlayerInterior(playerid,18); | |
630 | SetPlayerPos(playerid,161.391006,-93.159156,1001.804687); | |
631 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
632 | InfosEmp[playerid][DentroEmp] = true; | |
633 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
634 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
635 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
636 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
637 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
638 | GameTextForPlayer(playerid,GameText,4000,1); | |
639 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
640 | break; | |
641 | } | |
642 | if(DOF2_GetInt(Emps,"IDInterior") == 34) | |
643 | { | |
644 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
645 | SetPlayerInterior(playerid,17); | |
646 | SetPlayerPos(playerid,493.390991,-22.722799,1000.679687); | |
647 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
648 | InfosEmp[playerid][DentroEmp] = true; | |
649 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
650 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
651 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
652 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
653 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
654 | GameTextForPlayer(playerid,GameText,4000,1); | |
655 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
656 | break; | |
657 | } | |
658 | if(DOF2_GetInt(Emps,"IDInterior") == 35) | |
659 | { | |
660 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
661 | SetPlayerInterior(playerid,11); | |
662 | SetPlayerPos(playerid,501.980987,-69.150199,998.757812); | |
663 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
664 | InfosEmp[playerid][DentroEmp] = true; | |
665 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
666 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
667 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
668 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
669 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
670 | GameTextForPlayer(playerid,GameText,4000,1); | |
671 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
672 | break; | |
673 | } | |
674 | if(DOF2_GetInt(Emps,"IDInterior") == 36) | |
675 | { | |
676 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
677 | SetPlayerInterior(playerid,18); | |
678 | SetPlayerPos(playerid,-227.027999,1401.229980,27.765625); | |
679 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
680 | InfosEmp[playerid][DentroEmp] = true; | |
681 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
682 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
683 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
684 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
685 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
686 | GameTextForPlayer(playerid,GameText,4000,1); | |
687 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
688 | break; | |
689 | } | |
690 | if(DOF2_GetInt(Emps,"IDInterior") == 37) | |
691 | { | |
692 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
693 | SetPlayerInterior(playerid,4); | |
694 | SetPlayerPos(playerid,457.304748,-88.428497,999.554687); | |
695 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
696 | InfosEmp[playerid][DentroEmp] = true; | |
697 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
698 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
699 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
700 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
701 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
702 | GameTextForPlayer(playerid,GameText,4000,1); | |
703 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
704 | break; | |
705 | } | |
706 | if(DOF2_GetInt(Emps,"IDInterior") == 38) | |
707 | { | |
708 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
709 | SetPlayerInterior(playerid,5); | |
710 | SetPlayerPos(playerid,454.973937,-110.104995,1000.077209); | |
711 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
712 | InfosEmp[playerid][DentroEmp] = true; | |
713 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
714 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
715 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
716 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
717 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
718 | GameTextForPlayer(playerid,GameText,4000,1); | |
719 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
720 | break; | |
721 | } | |
722 | if(DOF2_GetInt(Emps,"IDInterior") == 39) | |
723 | { | |
724 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
725 | SetPlayerInterior(playerid,6); | |
726 | SetPlayerPos(playerid,435.271331,-80.958938,999.554687); | |
727 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
728 | InfosEmp[playerid][DentroEmp] = true; | |
729 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
730 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
731 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
732 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
733 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
734 | GameTextForPlayer(playerid,GameText,4000,1); | |
735 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
736 | break; | |
737 | } | |
738 | if(DOF2_GetInt(Emps,"IDInterior") == 40) | |
739 | { | |
740 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
741 | SetPlayerInterior(playerid,1); | |
742 | SetPlayerPos(playerid,452.489990,-18.179698,1001.132812); | |
743 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
744 | InfosEmp[playerid][DentroEmp] = true; | |
745 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
746 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
747 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
748 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
749 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
750 | GameTextForPlayer(playerid,GameText,4000,1); | |
751 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
752 | break; | |
753 | } | |
754 | if(DOF2_GetInt(Emps,"IDInterior") == 41) | |
755 | { | |
756 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
757 | SetPlayerInterior(playerid,1); | |
758 | SetPlayerPos(playerid,681.557861,-455.680053,-25.609874); | |
759 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
760 | InfosEmp[playerid][DentroEmp] = true; | |
761 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
762 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
763 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
764 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
765 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
766 | GameTextForPlayer(playerid,GameText,4000,1); | |
767 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
768 | break; | |
769 | } | |
770 | if(DOF2_GetInt(Emps,"IDInterior") == 42) | |
771 | { | |
772 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
773 | SetPlayerInterior(playerid,10); | |
774 | SetPlayerPos(playerid,375.962463,-65.816848,1001.507812); | |
775 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
776 | InfosEmp[playerid][DentroEmp] = true; | |
777 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
778 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
779 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
780 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
781 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
782 | GameTextForPlayer(playerid,GameText,4000,1); | |
783 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
784 | break; | |
785 | } | |
786 | if(DOF2_GetInt(Emps,"IDInterior") == 43) | |
787 | { | |
788 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
789 | SetPlayerInterior(playerid,9); | |
790 | SetPlayerPos(playerid,369.579528,-4.487294,1001.858886); | |
791 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
792 | InfosEmp[playerid][DentroEmp] = true; | |
793 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
794 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
795 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
796 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
797 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
798 | GameTextForPlayer(playerid,GameText,4000,1); | |
799 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
800 | break; | |
801 | } | |
802 | if(DOF2_GetInt(Emps,"IDInterior") == 44) | |
803 | { | |
804 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
805 | SetPlayerInterior(playerid,5); | |
806 | SetPlayerPos(playerid,373.825653,-117.270904,1001.499511); | |
807 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
808 | InfosEmp[playerid][DentroEmp] = true; | |
809 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
810 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
811 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
812 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
813 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
814 | GameTextForPlayer(playerid,GameText,4000,1); | |
815 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
816 | break; | |
817 | } | |
818 | if(DOF2_GetInt(Emps,"IDInterior") == 45) | |
819 | { | |
820 | GetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
821 | SetPlayerInterior(playerid,17); | |
822 | SetPlayerPos(playerid,381.169189,-188.803024,1000.632812); | |
823 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Digite {FFFFFF}/sairemp {FADD00}para sair desta empresa{FFFFFF}."); | |
824 | InfosEmp[playerid][DentroEmp] = true; | |
825 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Extorcao")); | |
826 | new AtualCofre[MAX_PLAYERS],GameText[128]; | |
827 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
828 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]+DOF2_GetInt(Emps,"Extorcao")); | |
829 | format(GameText,sizeof(GameText),"Entrada: -R$%d",DOF2_GetInt(Emps,"Extorcao")); | |
830 | GameTextForPlayer(playerid,GameText,4000,1); | |
831 | InfosEmp[playerid][IDEmpPresente] = DOF2_GetInt(Emps,"ID"); | |
832 | break; | |
833 | } | |
834 | } | |
835 | } | |
836 | } | |
837 | } | |
838 | return 1; | |
839 | } | |
840 | ||
841 | CMD:ajudaemp(playerid) | |
842 | { | |
843 | if(IsPlayerAdmin(playerid)) | |
844 | { | |
845 | new str[500]; | |
846 | strcat(str,"{FFFFFF}COMANDOS RCON:\n \n{00ED04}/criaremp {FFFFFF}- Criar empresa\n{00ED04}/deletaremp {FFFFFF}- Deletar empresa\n{00ED04}/editaremp {FFFFFF}- Editar empresa\n{00ED04}/infosemp {FFFFFF}- Verificar informações de empresa\n \n{FFFFFF}COMANDOS JOGADORES\n \n{00ED04}/compraremp {FFFFFF}- Comprar empresa\n{00ED04}/venderemp {FFFFFF}- Vender empresa\n"); | |
847 | strcat(str,"{00ED04}/sairemp {FFFFFF}- Sair da empresa\n{00ED04}/cofreemp {FFFFFFF}- Cofre da empresa\n{00ED04}/sacaremp {FFFFFF}- Sacar lucros da empresa\n \n {FADD00}h{1F00CF}Emp{FFFFFF} {00ED04}- Por: {FFFFFF}HeyHoLetsGo"); | |
848 | ShowPlayerDialog(playerid,DIALOG_AJUDA_EMP,DIALOG_STYLE_MSGBOX,"{FADD00}h{1F00CF}Emp{FFFFFF} - AJUDA",str,"FECHAR",""); | |
849 | } | |
850 | else | |
851 | { | |
852 | new str[600]; | |
853 | strcat(str,"{FFFFFF}COMANDOS\n \n{00ED04}/compraremp {FFFFFF}- Comprar empresa\n{00ED04}/venderemp {FFFFFF}- Vender empresa\n"); | |
854 | strcat(str,"{00ED04}/sairemp {FFFFFF}- Sair da empresa\n{00ED04}/cofreemp {FFFFFFF}- Cofre da empresa\n{00ED04}/sacaremp {FFFFFF}- Sacar lucros da empresa\n \n {FADD00}h{1F00CF}Emp{FFFFFF} {00ED04}- Por: {FFFFFF}HeyHoLetsGo"); | |
855 | ShowPlayerDialog(playerid,DIALOG_AJUDA_EMP,DIALOG_STYLE_MSGBOX,"{FADD00}h{1F00CF}Emp{FFFFFF} - AJUDA",str,"FECHAR",""); | |
856 | } | |
857 | return 1; | |
858 | } | |
859 | ||
860 | CMD:editaremp(playerid) | |
861 | { | |
862 | if(IsPlayerAdmin(playerid)) | |
863 | { | |
864 | ShowPlayerDialog(playerid,DIALOG_EDITAR_EMP,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA","{00ED04}Digite o {FFFFFF}ID {00ED04}da empresa que deseja editar{FFFFFF}:","PRÓXIMO","Cancelar"); | |
865 | } | |
866 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Você não é um Administrador logado na RCON então não pode realizar este comando{FFFFFF}."); | |
867 | return 1; | |
868 | } | |
869 | ||
870 | CMD:creditoshemp(playerid) | |
871 | { | |
872 | ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"{FADD00}h{1F00CF}Emp{FFFFFF} - CRÉDITOS","{00ED04}Criado e desenvido por: {FFFFFF}HeyHoLetsGo\n{00ED04}Créditos também a {FFFFFF}Tonisantolia - {00ED04}BETA Tester.\n \n{00ED04}Tenha um {FFFFFF}Bom Jogo{00ED04}!","FECHAR",""); | |
873 | return 1; | |
874 | } | |
875 | ||
876 | CMD:infosemp(playerid) | |
877 | { | |
878 | if(IsPlayerAdmin(playerid)) | |
879 | { | |
880 | ShowPlayerDialog(playerid,DIALOG_INFOS_EMP,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - INFORMAÇÕES","{00ED04}Digite o {FFFFFF}ID {00ED04}da empresa que deseja vizualizar as informações{FFFFFF}:","VER","Cancelar"); | |
881 | } | |
882 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Você não é um Administrador logado na RCON então não pode realizar este comando{FFFFFF}."); | |
883 | return 1; | |
884 | } | |
885 | ||
886 | CMD:deletaremp(playerid) | |
887 | { | |
888 | if(IsPlayerAdmin(playerid)) | |
889 | { | |
890 | ShowPlayerDialog(playerid,DIALOG_DELETAR_EMP,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - DELETAR EMPRESA","{00ED04}Digite o {FFFFFF}ID {00ED04}da empresa que deseja deletar{FFFFFF}:","PRÓXIMO","Cancelar"); | |
891 | } | |
892 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Você não é um Administrador logado na RCON{FFFFFF}."); | |
893 | return 1; | |
894 | } | |
895 | ||
896 | CMD:venderemp(playerid) | |
897 | { | |
898 | new Emps[64]; | |
899 | for(new e = 0; e <= 999; ++e) | |
900 | { | |
901 | format(Emps,sizeof(Emps),"Empresas/%d.ini",InfosEmp[playerid][IDEmpPresente]); | |
902 | { | |
903 | new Nome[MAX_PLAYER_NAME],str[600],str2[600]; | |
904 | GetPlayerName(playerid,Nome,MAX_PLAYER_NAME); | |
905 | if(InfosEmp[playerid][DentroEmp] == true) | |
906 | { | |
907 | if(!strcmp(DOF2_GetString(Emps,"DONO"),Nome,false)) | |
908 | { | |
909 | format(str,sizeof(str),"{00ED04}Você está prestes a vender sua {FFFFFF}empresa:\n \n{00ED04}Empresa nas coordenadas:\nX: {FFFFFF}%f {00ED04}Y: {FFFFFF}%f {00ED04}Z: {FFFFFF}%f\n{00ED04}No valor de: R${FFFFFF}%d \n{00ED04}Com o interior conforme o ID: {FFFFFF}%d",DOF2_GetFloat(Emps,"X"),DOF2_GetFloat(Emps,"Y"),DOF2_GetFloat(Emps,"Z"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior")); strcat(str2,str); | |
910 | format(str,sizeof(str),"\n{00ED04}Com valor inicial de extorção por entrada de: R${FFFFFF}%d\n{00ED04}Com modelo de pickup conforme ID: {FFFFFF}%d\n{00ED04}Com o nome da empresa: {FFFFFF}%s\n \n{00ED04}Você tem certeza de que quer vender sua empresa?\nOBS: {FFFFFF}Você não poderá desfazer isto depois.",DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetString(Emps,"Nome")); strcat(str2,str); | |
911 | ShowPlayerDialog(playerid,DIALOG_VENDER_EMP,DIALOG_STYLE_MSGBOX,"{FADD00}h{1F00CF}Emp{FFFFFF} - VENDER EMPRESA",str2,"VENDER","Cancelar"); | |
912 | RetirarEmps(); | |
913 | CarregarEmps(); | |
914 | break; | |
915 | } | |
916 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Esta empresa não pertence a você{FFFFFF}!"); | |
917 | break; | |
918 | } | |
919 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Você não está em sua empresa{FFFFFF}."); | |
920 | break; | |
921 | } | |
922 | } | |
923 | return 1; | |
924 | } | |
925 | ||
926 | CMD:compraremp(playerid) | |
927 | { | |
928 | for(new e = 0; e <= 999; ++e) | |
929 | { | |
930 | new Emps[128]; | |
931 | format(Emps,sizeof(Emps),"Empresas/%d.ini",e); | |
932 | { | |
933 | if(IsPlayerInRangeOfPoint(playerid,2.0,DOF2_GetFloat(Emps,"X"),DOF2_GetFloat(Emps,"Y"),DOF2_GetFloat(Emps,"Z"))) | |
934 | { | |
935 | if(!strcmp(DOF2_GetString(Emps,"DONO"),"Nenhum",false)) | |
936 | { | |
937 | if(GetPlayerMoney(playerid) >= DOF2_GetInt(Emps,"Valor")) | |
938 | { | |
939 | IDEmp[playerid] = e; | |
940 | new str[600],str2[800]; | |
941 | format(str,sizeof(str),"{00ED04}Você está prestes a comprar esta {FFFFFF}empresa:\n \n{00ED04}Empresa nas coordenadas:\nX: {FFFFFF}%f {00ED04}Y: {FFFFFF}%f {00ED04}Z: {FFFFFF}%f\n{00ED04}No valor de: R${FFFFFF}%d \n{00ED04}Com o interior conforme o ID: {FFFFFF}%d",DOF2_GetFloat(Emps,"X"),DOF2_GetFloat(Emps,"Y"),DOF2_GetFloat(Emps,"Z"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior")); strcat(str2,str); | |
942 | format(str,sizeof(str),"\n{00ED04}Com valor inicial de extorção por entrada de: R${FFFFFF}%d\n{00ED04}Com modelo de pickup conforme ID: {FFFFFF}%d\n{00ED04}Com o nome da empresa: {FFFFFF}%s\n \n{00ED04}Você tem certeza de que quer comprar esta {FFFFFF}empresa{00ED04}?\n \nOBS: {FFFFFF}Você poderá vendê-la a qualquer momento\nusando o comando {00ED04}/venderemp{FFFFFF}.",DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetString(Emps,"Nome")); strcat(str2,str); | |
943 | ShowPlayerDialog(playerid,DIALOG_COMPRAR_EMP,DIALOG_STYLE_MSGBOX,"{FADD00}h{1F00CF}Emp{FFFFFF} - COMPRAR EMPRESA",str2,"COMPRAR","Cancelar"); | |
944 | break; | |
945 | } | |
946 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ]{FF0000}Você não possúi dinheiro suficiente para comprar esta empresa{FFFFFF}."); | |
947 | break; | |
948 | } | |
949 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Esta empresa não está à venda{FFFFFF}!"); | |
950 | break; | |
951 | } | |
952 | } | |
953 | } | |
954 | return 1; | |
955 | } | |
956 | ||
957 | CMD:cofreemp(playerid) | |
958 | { | |
959 | for(new e = 0; e <= 999; ++e) | |
960 | { | |
961 | new Emps[64],TxtSaldoCofre[256]; | |
962 | format(Emps,sizeof(Emps),"Empresas/%d.ini",InfosEmp[playerid][IDEmpPresente]); | |
963 | if(DOF2_FileExists(Emps)) | |
964 | { | |
965 | if(InfosEmp[playerid][DentroEmp] == true) | |
966 | { | |
967 | format(TxtSaldoCofre,sizeof(TxtSaldoCofre),"{00ED04}Saldo do Cofre: R${FFFFFF}%d,00\n \n{00ED04}Use: {FFFFFF}/sacaremp {00ED04}para sacar o dinheiro\n({FFFFFF}COMANDO APENAS DISPONÍVEL PARA O DONO{00ED04})\n \n{00ED04}Tenha um bom jogo!",DOF2_GetInt(Emps,"Cofre")); | |
968 | ShowPlayerDialog(playerid,DIALOG_SALDO_EMP,DIALOG_STYLE_MSGBOX,"{FADD00}h{1F00CF}Emp{FFFFFF} - COFRE DA EMPRESA",TxtSaldoCofre,"FECHAR",""); | |
969 | break; | |
970 | } | |
971 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Você não está dentro de uma empresa{FFFFFF}!"); | |
972 | break; | |
973 | } | |
974 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Esta empresa falíu{FFFFFF}! {FF0000}(Acaba de ser deletada por um Admin)"); | |
975 | break; | |
976 | } | |
977 | return 1; | |
978 | } | |
979 | ||
980 | CMD:sacaremp(playerid) | |
981 | { | |
982 | for(new e = 0; e <= 999; ++e) | |
983 | { | |
984 | new Emps[128],TxtSaldoCofre[256]; | |
985 | format(Emps,sizeof(Emps),"Empresas/%d.ini",InfosEmp[playerid][IDEmpPresente]); | |
986 | if(DOF2_FileExists(Emps)) | |
987 | { | |
988 | new Nome[MAX_PLAYER_NAME]; | |
989 | GetPlayerName(playerid,Nome,sizeof(Nome)); | |
990 | if(!strcmp(DOF2_GetString(Emps,"DONO"),Nome,false)) | |
991 | { | |
992 | format(TxtSaldoCofre,sizeof(TxtSaldoCofre),"{00ED04}Saldo do Cofre: R${FFFFFF}%d,00\n \n{00ED04}Digite a quantia em dinheiro que deseja sacar:\nOBS: {FFFFFF}Sem {00ED04}R$ {FFFFFF}ou {00ED04}vírgula{FFFFFF}, apenas o número inteiro{00ED04}.",DOF2_GetInt(Emps,"Cofre")); | |
993 | ShowPlayerDialog(playerid,DIALOG_SALDO_EMP,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - COFRE DA EMPRESA - SACAR",TxtSaldoCofre,"SACAR","Fechar"); | |
994 | InfosEmp[playerid][IDEmpPresente] = e; | |
995 | break; | |
996 | } | |
997 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Você não é o dono desta empresa e não tem permissão de sacar os lucros{FFFFFF}."); | |
998 | break; | |
999 | } | |
1000 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Esta empresa falíu{FFFFFF}! {FF0000}(Acaba de ser deletada por um Admin)"); | |
1001 | break; | |
1002 | } | |
1003 | return 1; | |
1004 | } | |
1005 | ||
1006 | CMD:sairemp(playerid) | |
1007 | { | |
1008 | if(InfosEmp[playerid][DentroEmp] == false) | |
1009 | { | |
1010 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Você não está dentro de uma empresa{FFFFFF}!"); | |
1011 | } | |
1012 | else | |
1013 | { | |
1014 | SetPlayerInterior(playerid,0); | |
1015 | SetPlayerPos(playerid,InfosEmp[playerid][UltimaPosX],InfosEmp[playerid][UltimaPosY],InfosEmp[playerid][UltimaPosZ]); | |
1016 | InfosEmp[playerid][DentroEmp] = false; | |
1017 | } | |
1018 | return 1; | |
1019 | } | |
1020 | ||
1021 | CMD:criaremp(playerid) | |
1022 | { | |
1023 | if(IsPlayerAdmin(playerid)) | |
1024 | { | |
1025 | new str[256]; | |
1026 | GetPlayerPos(playerid,InfosEmp[playerid][X],InfosEmp[playerid][Y],InfosEmp[playerid][Z]); | |
1027 | format(str,sizeof(str),"{00ED04}Você deseja criar uma empresa nas coordenadas:\nX: {FFFFFF}%f {00ED04}Y: {FFFFFF}%f {00ED04}Z: {FFFFFF}%f\n \n{00ED04}Digite o {FFFFFF}VALOR {00ED04}da nova empresa{FFFFFF}:",InfosEmp[playerid][X],InfosEmp[playerid][Y],InfosEmp[playerid][Z]); | |
1028 | ShowPlayerDialog(playerid,DIALOG_VALOR_EMP,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - CRIAR EMPRESA",str,"Próximo","Cancelar"); | |
1029 | } | |
1030 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Você não é um Administrador logado na RCON então não pode realizar este comando{FFFFFF}."); | |
1031 | } | |
1032 | ||
1033 | public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[]) | |
1034 | { | |
1035 | if(dialogid == DIALOG_VALOR_EMP) | |
1036 | { | |
1037 | if(response) | |
1038 | { | |
1039 | new str[300]; | |
1040 | InfosEmp[playerid][ValorEmp] = strval(inputtext); | |
1041 | format(str,sizeof(str),"{00ED04}Você deseja criar uma empresa nas coordenadas:\nX: {FFFFFF}%f {00ED04}Y: {FFFFFF}%f {00ED04}Z: {FFFFFF}%f\n{00ED04}No valor de: R${FFFFFF}%d\n \n{00ED04}Escolha o {FFFFFF}INTERIOR {00ED04}da nova empresa na lista a seguir{FFFFFF}:",InfosEmp[playerid][X],InfosEmp[playerid][Y],InfosEmp[playerid][Z],InfosEmp[playerid][ValorEmp]); | |
1042 | ShowPlayerDialog(playerid,DIALOG_INT_CHOOSE1,DIALOG_STYLE_MSGBOX,"{FADD00}h{1F00CF}Emp{FFFFFF} - CRIAR EMPRESA",str,"Próximo","Cancelar"); | |
1043 | } | |
1044 | } | |
1045 | if(dialogid == DIALOG_INT_CHOOSE1) | |
1046 | { | |
1047 | if(response) | |
1048 | { | |
1049 | new list[1500]; | |
1050 | strcat(list,"SELECIONE UM INTERIOR (Mais opções na próxima versão)\n"); | |
1051 | strcat(list,"{00ED04}24/7 - {FFFFFF}1\n{00ED04}24/7 - {FFFFFF}2\n{00ED04}24/7 - {FFFFFF}3\n{00ED04}24/7 - {FFFFFF}4\n{00ED04}24/7 - {FFFFFF}5\n{00ED04}24/7 - {FFFFFF}6\n{00ED04}Balcao do Aeroporto\n{00ED04}Sala de bagagens do Aeroporto\n{00ED04}Shamal - {FFFFFF}Nave\n{00ED04}Andromada - {FFFFFF}Avião\n{00ED04}Loja de armas - {FFFFFF}1\n{00ED04}Loja de armas - {FFFFFF}2\n{00ED04}Loja de armas - {FFFFFF}3\n{00ED04}Loja de armas - {FFFFFF}4\n{00ED04}Loja de armas - {FFFFFF}5\n{00ED04}"); | |
1052 | strcat(list,"Loja de armas - {FFFFFF}Cabines\n{00ED04}Loja de armas - {FFFFFF}Pista\n{00ED04}Corredor dos tolos - {FFFFFF}Blastin\n{00ED04}Sala de orçamento do Motel\n{00ED04}Motel Jefferson\n{00ED04}Loja de apostas - {FFFFFF}Loteria\n{00ED04}Sex Shop\n{00ED04}Fábrica de carne\n{00ED04}Loja do Zero\n{00ED04}Posto de Dillimore\n{00ED04}Porão de Caligula\n{00ED04}Sala de Zeladores FDC\n{00ED04}Escritório do Woozie\n{00ED04}Binco - {FFFFFF}Loja de roupas\n{00ED04}Didier sachs - {FFFFFF}"); | |
1053 | strcat(list,"Loja de roupas\n{00ED04}Prolaps - {FFFFFF}Loja de roupas\n{00ED04}Suburban - {FFFFFF}Loja de roupas\n{00ED04}Victim - {FFFFFF}Loja de roupas\n{00ED04}Zip - {FFFFFF}Loja de roupas\n{00ED04}Alhambra\n{00ED04}Bar\n{00ED04}Bar Lil' probe\n{00ED04}Lanchonete do Jay\n{00ED04}Lanchonete do Gant\n{00ED04}Lanchonete secreta do vale\n{00ED04}Mundo de Coq\n{00ED04}Bar dos bombas\n{00ED04}Burger shot\n{00ED04}Cluckin' bell\n{00ED04}Well stacked pizza\n{00ED04}Rusty Browns rosquinhas"); | |
1054 | ShowPlayerDialog(playerid,DIALOG_INT_CHOOSE2,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - CRIAR EMPRESA:",list,"Próximo","Cancelar"); | |
1055 | } | |
1056 | } | |
1057 | if(dialogid == DIALOG_INT_CHOOSE2) | |
1058 | { | |
1059 | if(response) | |
1060 | { | |
1061 | for(new i = 0; i <= 46; ++i) | |
1062 | { | |
1063 | if(listitem == i) | |
1064 | { | |
1065 | InfosEmp[playerid][IntID] = i-1; | |
1066 | break; | |
1067 | } | |
1068 | new str[300]; | |
1069 | format(str,sizeof(str),"{00ED04}Você deseja criar uma empresa nas coordenadas:\nX: {FFFFFF}%f {00ED04}Y: {FFFFFF}%f {00ED04}Z: {FFFFFF}%f\n{00ED04}No valor de: R${FFFFFF}%d\n{00ED04}Com o interior número: {FFFFFF}%d\n \n{00ED04}Digite o valor inicial de {FFFFFF}EXTORÇÃO {00ED04}por entrada{FFFFFF}:",InfosEmp[playerid][X],InfosEmp[playerid][Y],InfosEmp[playerid][Z],InfosEmp[playerid][ValorEmp],i); | |
1070 | ShowPlayerDialog(playerid,DIALOG_EXTORCAO,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - CRIAR EMPRESA",str,"Próximo","Cancelar"); | |
1071 | } | |
1072 | } | |
1073 | } | |
1074 | if(dialogid == DIALOG_EXTORCAO) | |
1075 | { | |
1076 | if(response) | |
1077 | { | |
1078 | new str[300],str2[500]; | |
1079 | InfosEmp[playerid][Extorcao] = strval(inputtext); | |
1080 | format(str,sizeof(str),"{00ED04}Você deseja criar uma empresa nas coordenadas:\nX: {FFFFFF}%f {00ED04}Y: {FFFFFF}%f {00ED04}Z: {FFFFFF}%f\n{00ED04}No valor de: R${FFFFFF}%d\n{00ED04}Com o interior número: {FFFFFF}%d\n",InfosEmp[playerid][X],InfosEmp[playerid][Y],InfosEmp[playerid][Z],InfosEmp[playerid][ValorEmp],InfosEmp[playerid][IntID]); strcat(str2,str); | |
1081 | format(str,sizeof(str),"{00ED04}Com valor inicial de extorção por entrada de: R${FFFFFF}%d\n \n{00ED04}Digite o {FFFFFF}ID DA PICKUP {00ED04}da nova empresa{FFFFFF}:",InfosEmp[playerid][Extorcao]); strcat(str2,str); | |
1082 | ShowPlayerDialog(playerid,DIALOG_PICKUP,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - CRIAR EMPRESA",str2,"Próximo","Cancelar"); | |
1083 | } | |
1084 | } | |
1085 | if(dialogid == DIALOG_PICKUP) | |
1086 | { | |
1087 | if(response) | |
1088 | { | |
1089 | new str[300],str2[600]; | |
1090 | InfosEmp[playerid][Pickup] = strval(inputtext); | |
1091 | format(str,sizeof(str),"{00ED04}Você deseja criar uma empresa nas coordenadas:\nX: {FFFFFF}%f {00ED04}Y: {FFFFFF}%f {00ED04}Z: {FFFFFF}%f\n{00ED04}No valor de: R${FFFFFF}%d\n",InfosEmp[playerid][X],InfosEmp[playerid][Y],InfosEmp[playerid][Z],InfosEmp[playerid][ValorEmp]); strcat(str2,str); | |
1092 | format(str,sizeof(str),"{00ED04}Com o interior conforme o ID: {FFFFFF}%d\n{00ED04}Com valor inicial de extorção por entrada de: R${FFFFFF}%d\n{00ED04}Com modelo de pickup conforme ID: {FFFFFF}%d\n \n{00ED04}Finalizando, digite o {FFFFFF}NOME {00ED04}da nova empresa{FFFFFF}:",InfosEmp[playerid][IntID],InfosEmp[playerid][Extorcao],InfosEmp[playerid][Pickup]); strcat(str2,str); | |
1093 | ShowPlayerDialog(playerid,DIALOG_NOME,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - CRIAR EMPRESA",str2,"CRIAR","Cancelar"); | |
1094 | } | |
1095 | } | |
1096 | if(dialogid == DIALOG_NOME) | |
1097 | { | |
1098 | if(response) | |
1099 | { | |
1100 | new str[400],str2[800]; | |
1101 | format(NomeEmp,sizeof(NomeEmp),"%s",inputtext); | |
1102 | format(str,sizeof(str),"{00ED04}Você deseja criar uma empresa nas coordenadas:\nX: {FFFFFF}%f {00ED04}Y: {FFFFFF}%f {00ED04}Z: {FFFFFF}%f\n{00ED04}No valor de: R${FFFFFF}%d\n{00ED04}Com o interior conforme o ID: {FFFFFF}%d\n{00ED04}Com valor inicial de extorção por entrada de: R${FFFFFF}",InfosEmp[playerid][X],InfosEmp[playerid][Y],InfosEmp[playerid][Z],InfosEmp[playerid][ValorEmp],InfosEmp[playerid][IntID]); strcat(str2,str); | |
1103 | format(str,sizeof(str),"%d\n{00ED04}Com modelo de pickup conforme ID: {FFFFFF}%d\n{00ED04}Com o nome da empresa: {FFFFFF}%s\n \n{00ED04}Você tem certeza que deseja criar esta\nnova empresa{FFFFFF}? {00ED04}Clique em {FFFFFF}CRIAR {00ED04}para terminar{FFFFFF}.\n \n{00ED04}OBS: {FFFFFF}Você poderá destruir esta empresa\nà qualquer momento usando {00ED04}/deletaremp{FFFFFF}.",InfosEmp[playerid][Extorcao],InfosEmp[playerid][Pickup],NomeEmp); strcat(str2,str); | |
1104 | ShowPlayerDialog(playerid,DIALOG_CONCLUSAO,DIALOG_STYLE_MSGBOX,"{FADD00}h{1F00CF}Emp{FFFFFF} - CRIAR EMPRESA",str2,"CRIAR","Cancelar"); | |
1105 | } | |
1106 | } | |
1107 | if(dialogid == DIALOG_CONCLUSAO) | |
1108 | { | |
1109 | if(response) | |
1110 | { | |
1111 | for(new e = 0; e <= 999; e++) | |
1112 | { | |
1113 | new Emps[64]; | |
1114 | format(Emps,sizeof(Emps),"Empresas/%d.ini",e); | |
1115 | if(!DOF2_FileExists(Emps)) | |
1116 | { | |
1117 | DOF2_CreateFile(Emps); | |
1118 | DOF2_SetString(Emps,"Nome",NomeEmp); | |
1119 | DOF2_SetFloat(Emps,"X",InfosEmp[playerid][X]); | |
1120 | DOF2_SetFloat(Emps,"Y",InfosEmp[playerid][Y]); | |
1121 | DOF2_SetFloat(Emps,"Z",InfosEmp[playerid][Z]); | |
1122 | DOF2_SetInt(Emps,"ID",e); | |
1123 | DOF2_SetInt(Emps,"Valor",InfosEmp[playerid][ValorEmp]); | |
1124 | DOF2_SetInt(Emps,"IDInterior",InfosEmp[playerid][IntID]); | |
1125 | DOF2_SetInt(Emps,"Extorcao",InfosEmp[playerid][Extorcao]); | |
1126 | DOF2_SetInt(Emps,"Pickup",InfosEmp[playerid][Pickup]); | |
1127 | DOF2_SetInt(Emps,"Cofre",0); | |
1128 | DOF2_SetString(Emps,"DONO","Nenhum"); | |
1129 | DOF2_SaveFile(); | |
1130 | CarregarEmps(); | |
1131 | break; | |
1132 | } | |
1133 | } | |
1134 | } | |
1135 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FADD00}Criação da nova empresa cancelada{FFFFFF}."); | |
1136 | } | |
1137 | if(dialogid == DIALOG_COMPRAR_EMP) | |
1138 | { | |
1139 | if(response) | |
1140 | { | |
1141 | new Nome[MAX_PLAYER_NAME],Emps[64]; | |
1142 | format(Emps,sizeof(Emps),"Empresas/%d.ini",IDEmp[playerid]); | |
1143 | GetPlayerName(playerid,Nome,MAX_PLAYER_NAME); | |
1144 | DOF2_SetString(Emps,"DONO",Nome); | |
1145 | DOF2_SaveFile(); | |
1146 | GivePlayerMoney(playerid,-DOF2_GetInt(Emps,"Valor")); | |
1147 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {00ED04}Você comprou esta empresa! Use: {FFFFFF}/ajudaemp {00ED04}para mais informações{FFFFFF}."); | |
1148 | RetirarEmps(); | |
1149 | CarregarEmps(); | |
1150 | } | |
1151 | } | |
1152 | if(dialogid == DIALOG_VENDER_EMP) | |
1153 | { | |
1154 | if(response) | |
1155 | { | |
1156 | new Emps[64]; | |
1157 | format(Emps,sizeof(Emps),"Empresas/%d.ini",InfosEmp[playerid][IDEmpPresente]); | |
1158 | DOF2_SetString(Emps,"DONO","Nenhum"); | |
1159 | GivePlayerMoney(playerid,DOF2_GetInt(Emps,"Valor")); | |
1160 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {00ED04}Empresa vendida com sucesso{FFFFFF}!"); | |
1161 | RetirarEmps(); | |
1162 | CarregarEmps(); | |
1163 | } | |
1164 | } | |
1165 | if(dialogid == DIALOG_SALDO_EMP) | |
1166 | { | |
1167 | new Emps[64]; | |
1168 | format(Emps,sizeof(Emps),"Empresas/%d.ini",InfosEmp[playerid][IDEmpPresente]); | |
1169 | { | |
1170 | if(strval(inputtext) <= DOF2_GetInt(Emps,"Cofre")) | |
1171 | { | |
1172 | new AtualCofre[MAX_PLAYERS]; | |
1173 | GivePlayerMoney(playerid,strval(inputtext)); | |
1174 | AtualCofre[playerid] = DOF2_GetInt(Emps,"Cofre"); | |
1175 | DOF2_SetInt(Emps,"Cofre",AtualCofre[playerid]-strval(inputtext)); | |
1176 | } | |
1177 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Sua empresa não possúi esta quantidade de lucros{FFFFFF}."); | |
1178 | } | |
1179 | } | |
1180 | if(dialogid == DIALOG_DELETAR_EMP) | |
1181 | { | |
1182 | if(response) | |
1183 | { | |
1184 | new Emps[64]; | |
1185 | format(Emps,sizeof(Emps),"Empresas/%d.ini",strval(inputtext)); | |
1186 | if(DOF2_FileExists(Emps)) | |
1187 | { | |
1188 | DOF2_RemoveFile(Emps); | |
1189 | RetirarEmps(); | |
1190 | CarregarEmps(); | |
1191 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {00ED04}A empresa foi removida com sucesso{FFFFFF}."); | |
1192 | } | |
1193 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Esta empresa não existe{FFFFFF}!"); | |
1194 | } | |
1195 | } | |
1196 | if(dialogid == DIALOG_INFOS_EMP) | |
1197 | { | |
1198 | if(response) | |
1199 | { | |
1200 | new Emps[64]; | |
1201 | format(Emps,sizeof(Emps),"Empresas/%d.ini",strval(inputtext)); | |
1202 | { | |
1203 | if(DOF2_FileExists(Emps)) | |
1204 | { | |
1205 | new str[400],str2[600]; | |
1206 | format(str,sizeof(str),"{00ED04}Esta empresa está localizada nas coordenadas:\nX: {FFFFFF}%f {00ED04}Y: {FFFFFF}%f {00ED04}Z: {FFFFFF}%f\n{00ED04}No valor de: R${FFFFFF}%d\n{00ED04}Com o interior conforme o ID: {FFFFFF}%d\n{00ED04}Com valor de extorção por entrada de: R${FFFFFF}",DOF2_GetFloat(Emps,"X"),DOF2_GetFloat(Emps,"Y"),DOF2_GetFloat(Emps,"Z"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior")); strcat(str2,str); | |
1207 | format(str,sizeof(str),"%d\n{00ED04}Com modelo de pickup conforme ID: {FFFFFF}%d\n{00ED04}Com o nome da empresa: {FFFFFF}%s\n{00ED04}DONO da empresa: {FFFFFF}%s",DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetString(Emps,"Nome"),DOF2_GetString(Emps,"DONO")); strcat(str2,str); | |
1208 | ShowPlayerDialog(playerid,DIALOG_INFOS_EMP_SHOW,DIALOG_STYLE_MSGBOX,"{FADD00}h{1F00CF}Emp{FFFFFF} - INFORMAÇÕES",str2,"FECHAR",""); | |
1209 | } | |
1210 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Esta empresa não existe{FFFFFF}!"); | |
1211 | } | |
1212 | } | |
1213 | } | |
1214 | if(dialogid == DIALOG_EDITAR_EMP) | |
1215 | { | |
1216 | new str[256],Emps[64]; | |
1217 | format(Emps,sizeof(Emps),"Empresas/%d.ini",strval(inputtext)); | |
1218 | if(DOF2_FileExists(Emps)) | |
1219 | { | |
1220 | IDEmp[playerid] = strval(inputtext); | |
1221 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1222 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1223 | } | |
1224 | else SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {FF0000}Esta empresa não existe{FFFFFF}!"); | |
1225 | } | |
1226 | if(dialogid == DIALOG_EDIT_LIST) | |
1227 | { | |
1228 | if(response) | |
1229 | { | |
1230 | if(listitem == 0) | |
1231 | { | |
1232 | ShowPlayerDialog(playerid,DIALOG_EDIT_DONO,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR DONO","{00ED04}Digite o nome do novo {FFFFFF}DONO {00ED04}desta empresa{FFFFFF}:\n{00ED04}Para retirar o dono, digite: {FFFFFF}Nenhum","CONFIRMA","Voltar"); | |
1233 | } | |
1234 | if(listitem == 1) | |
1235 | { | |
1236 | ShowPlayerDialog(playerid,DIALOG_EDIT_NOME,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR NOME","{00ED04}Digite o novo {FFFFFF}NOME {00ED04}da empresa{FFFFFF}:","CONFIRMA","Voltar"); | |
1237 | } | |
1238 | if(listitem == 2) | |
1239 | { | |
1240 | ShowPlayerDialog(playerid,DIALOG_EDIT_VALOR,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR VALOR","{00ED04}Digite o novo {FFFFFF}VALOR {00ED04}da empresa{FFFFFF}:","CONFIRMA","Voltar"); | |
1241 | } | |
1242 | if(listitem == 3) | |
1243 | { | |
1244 | new list[1500]; | |
1245 | strcat(list,"{FFFFFF}SELECIONE UM NOVO {00ED04}INTERIOR\n"); | |
1246 | strcat(list,"{00ED04}24/7 - {FFFFFF}1\n{00ED04}24/7 - {FFFFFF}2\n{00ED04}24/7 - {FFFFFF}3\n{00ED04}24/7 - {FFFFFF}4\n{00ED04}24/7 - {FFFFFF}5\n{00ED04}24/7 - {FFFFFF}6\n{00ED04}Balcao do Aeroporto\n{00ED04}Sala de bagagens do Aeroporto\n{00ED04}Shamal - {FFFFFF}Nave\n{00ED04}Andromada - {FFFFFF}Avião\n{00ED04}Loja de armas - {FFFFFF}1\n{00ED04}Loja de armas - {FFFFFF}2\n{00ED04}Loja de armas - {FFFFFF}3\n{00ED04}Loja de armas - {FFFFFF}4\n{00ED04}Loja de armas - {FFFFFF}5\n{00ED04}"); | |
1247 | strcat(list,"Loja de armas - {FFFFFF}Cabines\n{00ED04}Loja de armas - {FFFFFF}Pista\n{00ED04}Corredor dos tolos - {FFFFFF}Blastin\n{00ED04}Sala de orçamento do Motel\n{00ED04}Motel Jefferson\n{00ED04}Loja de apostas - {FFFFFF}Loteria\n{00ED04}Sex Shop\n{00ED04}Fábrica de carne\n{00ED04}Loja do Zero\n{00ED04}Posto de Dillimore\n{00ED04}Porão de Caligula\n{00ED04}Sala de Zeladores FDC\n{00ED04}Escritório do Woozie\n{00ED04}Binco - {FFFFFF}Loja de roupas\n{00ED04}Didier sachs - {FFFFFF}"); | |
1248 | strcat(list,"Loja de roupas\n{00ED04}Prolaps - {FFFFFF}Loja de roupas\n{00ED04}Suburban - {FFFFFF}Loja de roupas\n{00ED04}Victim - {FFFFFF}Loja de roupas\n{00ED04}Zip - {FFFFFF}Loja de roupas\n{00ED04}Alhambra\n{00ED04}Bar\n{00ED04}Bar Lil' probe\n{00ED04}Lanchonete do Jay\n{00ED04}Lanchonete do Gant\n{00ED04}Lanchonete secreta do vale\n{00ED04}Mundo de Coq\n{00ED04}Bar dos bombas\n{00ED04}Burger shot\n{00ED04}Cluckin' bell\n{00ED04}Well stacked pizza\n{00ED04}Rusty Browns rosquinhas"); | |
1249 | ShowPlayerDialog(playerid,DIALOG_EDIT_INTERIOR,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR INTERIOR",list,"CONFIRMA","Voltar"); | |
1250 | } | |
1251 | if(listitem == 4) | |
1252 | { | |
1253 | ShowPlayerDialog(playerid,DIALOG_EDIT_EXTORCAO,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EXTORÇÃO","{00ED04}Digite o novo valor da {FFFFFF}EXTORÇÃO {00ED04}por entrada{FFFFFF}:","CONFIRMA","Voltar"); | |
1254 | } | |
1255 | if(listitem == 5) | |
1256 | { | |
1257 | ShowPlayerDialog(playerid,DIALOG_EDIT_PICKUP,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR PICKUP","{00ED04}Digite o {FFFFFF}ID {00ED04}do novo {FFFFFF}PICKUP{00ED04}:","CONFIRMA","Voltar"); | |
1258 | } | |
1259 | if(listitem == 6) | |
1260 | { | |
1261 | ShowPlayerDialog(playerid,DIALOG_EDIT_COFRE,DIALOG_STYLE_INPUT,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR COFRE","{00ED04}Digite o novo valor do {FFFFFF}COFRE{00ED04}:","CONFIRMA","Voltar"); | |
1262 | } | |
1263 | } | |
1264 | } | |
1265 | if(dialogid == DIALOG_EDIT_DONO) | |
1266 | { | |
1267 | new Emps[64]; | |
1268 | format(Emps,sizeof(Emps),"Empresas/%d.ini",IDEmp[playerid]); | |
1269 | if(response) | |
1270 | { | |
1271 | DOF2_SetString(Emps,"DONO",inputtext); | |
1272 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {00ED04}O novo dono foi definido com sucesso{FFFFFF}!"); | |
1273 | RetirarEmps(); | |
1274 | CarregarEmps(); | |
1275 | new str[256]; | |
1276 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1277 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1278 | } | |
1279 | else | |
1280 | { | |
1281 | new str[256]; | |
1282 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1283 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1284 | } | |
1285 | } | |
1286 | if(dialogid == DIALOG_EDIT_NOME) | |
1287 | { | |
1288 | new Emps[64]; | |
1289 | format(Emps,sizeof(Emps),"Empresas/%d.ini",IDEmp[playerid]); | |
1290 | if(response) | |
1291 | { | |
1292 | DOF2_SetString(Emps,"Nome",inputtext); | |
1293 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {00ED04}O novo nome foi definido com sucesso{FFFFFF}!"); | |
1294 | RetirarEmps(); | |
1295 | CarregarEmps(); | |
1296 | new str[256]; | |
1297 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1298 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1299 | } | |
1300 | else | |
1301 | { | |
1302 | new str[256]; | |
1303 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1304 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1305 | } | |
1306 | } | |
1307 | if(dialogid == DIALOG_EDIT_VALOR) | |
1308 | { | |
1309 | new Emps[64]; | |
1310 | format(Emps,sizeof(Emps),"Empresas/%d.ini",IDEmp[playerid]); | |
1311 | if(response) | |
1312 | { | |
1313 | DOF2_SetInt(Emps,"Valor",strval(inputtext)); | |
1314 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {00ED04}O novo valor foi definido com sucesso{FFFFFF}!"); | |
1315 | RetirarEmps(); | |
1316 | CarregarEmps(); | |
1317 | new str[256]; | |
1318 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1319 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1320 | } | |
1321 | else | |
1322 | { | |
1323 | new str[256]; | |
1324 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1325 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1326 | } | |
1327 | } | |
1328 | if(dialogid == DIALOG_EDIT_INTERIOR) | |
1329 | { | |
1330 | new Emps[64]; | |
1331 | format(Emps,sizeof(Emps),"Empresas/%d.ini",IDEmp[playerid]); | |
1332 | if(response) | |
1333 | { | |
1334 | for(new i = 0; i <= 46; ++i) | |
1335 | { | |
1336 | if(listitem == i) | |
1337 | { | |
1338 | DOF2_SetInt(Emps,"IDInterior",i-1); | |
1339 | RetirarEmps(); | |
1340 | CarregarEmps(); | |
1341 | break; | |
1342 | } | |
1343 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {00ED04}O novo interior foi definido com sucesso{FFFFFF}!"); | |
1344 | new str[256]; | |
1345 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1346 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1347 | } | |
1348 | } | |
1349 | else | |
1350 | { | |
1351 | new str[256]; | |
1352 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1353 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1354 | } | |
1355 | } | |
1356 | if(dialogid == DIALOG_EDIT_EXTORCAO) | |
1357 | { | |
1358 | new Emps[64]; | |
1359 | format(Emps,sizeof(Emps),"Empresas/%d.ini",IDEmp[playerid]); | |
1360 | if(response) | |
1361 | { | |
1362 | DOF2_SetInt(Emps,"Extorcao",strval(inputtext)); | |
1363 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {00ED04}O novo valor de extorção foi definido com sucesso{FFFFFF}!"); | |
1364 | RetirarEmps(); | |
1365 | CarregarEmps(); | |
1366 | new str[256]; | |
1367 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1368 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1369 | } | |
1370 | else | |
1371 | { | |
1372 | new str[256]; | |
1373 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1374 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1375 | } | |
1376 | } | |
1377 | if(dialogid == DIALOG_EDIT_PICKUP) | |
1378 | { | |
1379 | new Emps[64]; | |
1380 | format(Emps,sizeof(Emps),"Empresas/%d.ini",IDEmp[playerid]); | |
1381 | if(response) | |
1382 | { | |
1383 | DOF2_SetInt(Emps,"Pickup",strval(inputtext)); | |
1384 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {00ED04}A nova pickup foi definida com sucesso{FFFFFF}!"); | |
1385 | RetirarEmps(); | |
1386 | CarregarEmps(); | |
1387 | new str[256]; | |
1388 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1389 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1390 | } | |
1391 | else | |
1392 | { | |
1393 | new str[256]; | |
1394 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1395 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1396 | } | |
1397 | } | |
1398 | if(dialogid == DIALOG_EDIT_COFRE) | |
1399 | { | |
1400 | new Emps[64]; | |
1401 | format(Emps,sizeof(Emps),"Empresas/%d.ini",IDEmp[playerid]); | |
1402 | if(response) | |
1403 | { | |
1404 | DOF2_SetInt(Emps,"Cofre",strval(inputtext)); | |
1405 | SendClientMessage(playerid,-1,"{FFFFFF}[ ! ] {00ED04}O novo valor do cofre foi definido com sucesso{FFFFFF}!"); | |
1406 | RetirarEmps(); | |
1407 | CarregarEmps(); | |
1408 | new str[256]; | |
1409 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1410 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1411 | } | |
1412 | else | |
1413 | { | |
1414 | new str[256]; | |
1415 | format(str,sizeof(str),"{00ED04}DONO: {FFFFFF}%s\n{00ED04}NOME: {FFFFFF}%s\n{00ED04}VALOR: R${FFFFFF}%d,00\n{00ED04}INTERIOR: {FFFFFF}%d\n{00ED04}EXTORÇÃO: R${FFFFFF}%d,00\n{00ED04}PICKUP: {FFFFFF}%d\n{00ED04}COFRE: R${FFFFFF}%d",DOF2_GetString(Emps,"DONO"),DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"Valor"),DOF2_GetInt(Emps,"IDInterior"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Pickup"),DOF2_GetInt(Emps,"Cofre")); | |
1416 | ShowPlayerDialog(playerid,DIALOG_EDIT_LIST,DIALOG_STYLE_LIST,"{FADD00}h{1F00CF}Emp{FFFFFF} - EDITAR EMPRESA",str,"EDITAR","Cancelar"); | |
1417 | } | |
1418 | } | |
1419 | return 1; | |
1420 | } | |
1421 | ||
1422 | stock CarregarEmps() | |
1423 | { | |
1424 | new Emps[128],TxtEmp[256]; | |
1425 | for(new e = 0; e <= 999; ++e) | |
1426 | { | |
1427 | format(Emps,sizeof(Emps),"Empresas/%d.ini",e); | |
1428 | if(DOF2_FileExists(Emps)) | |
1429 | { | |
1430 | if(!strcmp(DOF2_GetString(Emps,"DONO"),"Nenhum",false)) | |
1431 | { | |
1432 | format(TxtEmp,sizeof(TxtEmp),"{26C2FF}EMPRESA\n{FADD00}Nome: {FFFFFF}%s\n{FADD00}ID: {FFFFFF}%d\n{FADD00}DONO: {FFFFFF}%s\n{FADD00}Extorção: {00ED04}R${FFFFFF}%d,00\n{00ED04}À VENDA! Use: {FFFFFF}/compraremp\n{FADD00}VALOR: R${FFFFFF}%d\n{26C2FF}F para entrar.",DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"ID"),DOF2_GetString(Emps,"DONO"),DOF2_GetInt(Emps,"Extorcao"),DOF2_GetInt(Emps,"Valor")); | |
1433 | IDTextEmp[e] = Create3DTextLabel(TxtEmp,-1,DOF2_GetFloat(Emps,"X"),DOF2_GetFloat(Emps,"Y"),DOF2_GetFloat(Emps,"Z"),30.0,0); | |
1434 | EmpPickup[e] = CreatePickup(DOF2_GetInt(Emps,"Pickup"),23,DOF2_GetFloat(Emps,"X"),DOF2_GetFloat(Emps,"Y"),DOF2_GetFloat(Emps,"Z"),0); | |
1435 | } | |
1436 | else | |
1437 | { | |
1438 | format(TxtEmp,sizeof(TxtEmp),"{26C2FF}EMPRESA\n{FADD00}Nome: {FFFFFF}%s\n{FADD00}ID: {FFFFFF}%d\n{FADD00}DONO: {FFFFFF}%s\n{FADD00}Extorção: {00ED04}R${FFFFFF}%d,00\n \n{26C2FF}F para entrar.",DOF2_GetString(Emps,"Nome"),DOF2_GetInt(Emps,"ID"),DOF2_GetString(Emps,"DONO"),DOF2_GetInt(Emps,"Extorcao")); | |
1439 | IDTextEmp[e] = Create3DTextLabel(TxtEmp,-1,DOF2_GetFloat(Emps,"X"),DOF2_GetFloat(Emps,"Y"),DOF2_GetFloat(Emps,"Z"),30.0,0); | |
1440 | EmpPickup[e] = CreatePickup(DOF2_GetInt(Emps,"Pickup"),23,DOF2_GetFloat(Emps,"X"),DOF2_GetFloat(Emps,"Y"),DOF2_GetFloat(Emps,"Z"),0); | |
1441 | } | |
1442 | } | |
1443 | } | |
1444 | return 1; | |
1445 | } | |
1446 | ||
1447 | stock RetirarEmps() | |
1448 | { | |
1449 | for(new e = 0; e <= 999; ++e) | |
1450 | { | |
1451 | DestroyPickup(EmpPickup[e]); | |
1452 | Delete3DTextLabel(IDTextEmp[e]); | |
1453 | if(e == 998) | |
1454 | { | |
1455 | break; | |
1456 | } | |
1457 | } | |
1458 | return 1; | |
1459 | } | |
1460 | ||
1461 | //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
1462 | //=-=-=-=-=-=-=-=-=-=-=-=-=-=[hEmp System - Criado e Desenvolvido por: HeyHoLetsGo]=-=-=-=-=-=-=-=-=-=-=-=-= | |
1463 | //=-=-=-=-=-=-=-=-=-=-=-=-=-=[Créditos ao Tonisaltolia por BETA Tester + Ajuda ]=-=-=-=-=-=-=-=-=-=-=-=-= | |
1464 | //=-=-=-=-=-=-=-=-=-=-=-=-=-=[Visite: forum.sa-mp.com | NÃO RETIRE OS CRÉDITOS! ]=-=-=-=-=-=-=-=-=-=-=-=-= | |
1465 | //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |