SHOW:
|
|
- or go back to the newest paste.
| 1 | /* | |
| 2 | Multi-Filterscript System by SyoSmoo462 | |
| 3 | ||
| 4 | Feuer Infos : | |
| 5 | ||
| 6 | ACHTUNG : DAMIT EIN FEUER KOMMT MUSS EIN TIMER AKTIV SEIN ABER NUR EINER!!D.H EINS AUSKOMMENTIERT UND EINS KOMMENTIERT('Time1' oder 'Time2')!!
| |
| 7 | ||
| 8 | Event Infos : | |
| 9 | ||
| 10 | ACHTING : EVENT SYSTEM PER RCON ADMIN. NUR BENUTZEN , FALLS VORHANDENES SYSTEM NICHT GUT IST(ODER PER PORTEN) ODER FALLS KEINS VORHANDEN IST. | |
| 11 | ||
| 12 | Lotto System : | |
| 13 | ||
| 14 | ACHTUNG : LOTTO SYSTEM IST NICHT GETESTET WORDEN!! | |
| 15 | */ | |
| 16 | ||
| 17 | ||
| 18 | ||
| 19 | /* | |
| 20 | || Includes || | |
| 21 | */ | |
| 22 | #include <a_samp> | |
| 23 | #include <MFarben> | |
| 24 | #include <ocmd> | |
| 25 | #include <FireSystem> | |
| 26 | #include <sscanf> | |
| 27 | ||
| 28 | /* | |
| 29 | || enums || | |
| 30 | */ | |
| 31 | enum sDaten | |
| 32 | {
| |
| 33 | LottoNr, | |
| 34 | LottoTicket | |
| 35 | } | |
| 36 | ||
| 37 | /* | |
| 38 | || Defines || | |
| 39 | */ | |
| 40 | #define FILTERSCRIPT | |
| 41 | #define Funktion%0(%1) forward%0(%1); public%0(%1) | |
| 42 | #define MAX_FEUER 10 | |
| 43 | #define MIN_GELD 700 | |
| 44 | #define MAX_GELD 1500 | |
| 45 | //#define Time1 1 // Alle 30 min ein Feuer | |
| 46 | #define Time2 1 // Alle 60 min ein Feuer | |
| 47 | #define Lotto 1 | |
| 48 | new Spieler[MAX_PLAYERS][sDaten]; | |
| 49 | new FlamesLeft = 0; | |
| 50 | new Float:mx, Float:my, Float:mz; | |
| 51 | - | position(Checkpoint wird mit /event erstellt Rcon Admin). |
| 51 | + | |
| 52 | new Float:EventPosY; | |
| 53 | - | /event | Erstellt ein Checkpoint vom Aktuellen Event |
| 53 | + | |
| 54 | new EventAktiv; | |
| 55 | new LottoJackpot; | |
| 56 | new LottoWinnNumber; | |
| 57 | ||
| 58 | ||
| 59 | ||
| 60 | /* | |
| 61 | || forwards || | |
| 62 | */ | |
| 63 | forward CreateFeuer(id,playerid); | |
| 64 | forward LottoGewinn(); | |
| 65 | /* | |
| 66 | || Alle Befehle || | |
| 67 | --------------------------------------------------------- | |
| 68 | Befehl : | Beschreibung : | |
| 69 | --------------------------------------------------------- | |
| 70 | /mevent | Erstellt ein Event(als Checkpoint) an deiner | |
| 71 | position(Checkpoint wird mit /eventpos erstellt Rcon | |
| 72 | Admin). | |
| 73 | --------------------------------------------------------- | |
| 74 | /eventpos | Erstellt ein Checkpoint vom Aktuellen Event | |
| 75 | Punkt. | |
| 76 | --------------------------------------------------------- | |
| 77 | /eventaus | Macht das Event aus(wenn ein User jetzt den | |
| 78 | befehl /event macht geht es nicht. Rcon Admin). | |
| 79 | --------------------------------------------------------- | |
| 80 | /Filterscriptinfo | Infos zum Multi-Filterscript | |
| 81 | --------------------------------------------------------- | |
| 82 | /countdown | Erstellt einen Countdown(RCON ADMIN). | |
| 83 | --------------------------------------------------------- | |
| 84 | /lotto | Damit kauft man sich einen Lotterischein | |
| 85 | --------------------------------------------------------- | |
| 86 | ||
| 87 | */ | |
| 88 | ||
| 89 | ||
| 90 | /* | |
| 91 | || Changelog/Todo || | |
| 92 | ||
| 93 | -------------------------- | |
| 94 | v.0.1 | |
| 95 | -------------------------- | |
| 96 | Sache : | (nicht)Erledigt | |
| 97 | -------------------------- | |
| 98 | Feuer Timer [X] | |
| 99 | Feuer Meldung [X] | |
| 100 | Feuer Spawnt [X] | |
| 101 | Feuer Löschen geht [X] | |
| 102 | Feuer Löschen belohnung[X] | |
| 103 | -------------------------- | |
| 104 | v.0.2 | |
| 105 | -------------------------- | |
| 106 | Befehl:Event Erstellen [X] | |
| 107 | Befehl:Event Aus [X] | |
| 108 | Befehl:Event Checkpoint[X] | |
| 109 | -------------------------- | |
| 110 | v.0.3 | |
| 111 | -------------------------- | |
| 112 | Befehl:Countdown Start [X] | |
| 113 | Enum sDaten Hinzugefügt[X] | |
| 114 | Lotto Befehl [X] | |
| 115 | Lotto Jede Stunde [X] | |
| 116 | Pro Ticket Gewinn Plus [X] | |
| 117 | Lotto Gewin ausgeben [X] | |
| 118 | ||
| 119 | */ | |
| 120 | ||
| 121 | public OnFilterScriptInit() | |
| 122 | {
| |
| 123 | f_init(); | |
| 124 | print("\n\n");
| |
| 125 | print("Multi-Filterscript System by SyoSmoo462 Startet...\n\n");
| |
| 126 | #if defined Time1 | |
| 127 | SetTimer("CreateFeuer",1800000,true);
| |
| 128 | #endif | |
| 129 | #if defined Time2 | |
| 130 | SetTimer("CreateFeuer",3600000,true);
| |
| 131 | #endif | |
| 132 | LottoJackpot = 20000; | |
| 133 | new Stunde,Minute,Sekunde; | |
| 134 | gettime(Stunde,Minute,Sekunde); | |
| 135 | if(Stunde == 00 && Minute == 00) | |
| 136 | {
| |
| 137 | for(new i; i<MAX_PLAYERS; i++) | |
| 138 | {
| |
| 139 | new string[128]; | |
| 140 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 141 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 142 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 143 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 144 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 145 | } | |
| 146 | ||
| 147 | } | |
| 148 | else if(Stunde == 01 && Minute == 00) | |
| 149 | {
| |
| 150 | for(new i; i<MAX_PLAYERS; i++) | |
| 151 | {
| |
| 152 | new string[128]; | |
| 153 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 154 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 155 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 156 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 157 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 158 | } | |
| 159 | ||
| 160 | } | |
| 161 | else if(Stunde == 02 && Minute == 00) | |
| 162 | {
| |
| 163 | for(new i; i<MAX_PLAYERS; i++) | |
| 164 | {
| |
| 165 | new string[128]; | |
| 166 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 167 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 168 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 169 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 170 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 171 | } | |
| 172 | ||
| 173 | } | |
| 174 | else if(Stunde == 03 && Minute == 00) | |
| 175 | {
| |
| 176 | for(new i; i<MAX_PLAYERS; i++) | |
| 177 | {
| |
| 178 | new string[128]; | |
| 179 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 180 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 181 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 182 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 183 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 184 | } | |
| 185 | ||
| 186 | } | |
| 187 | else if(Stunde == 04 && Minute == 00) | |
| 188 | {
| |
| 189 | for(new i; i<MAX_PLAYERS; i++) | |
| 190 | {
| |
| 191 | new string[128]; | |
| 192 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 193 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 194 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 195 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 196 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 197 | } | |
| 198 | ||
| 199 | } | |
| 200 | else if(Stunde == 05 && Minute == 00) | |
| 201 | {
| |
| 202 | for(new i; i<MAX_PLAYERS; i++) | |
| 203 | {
| |
| 204 | new string[128]; | |
| 205 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 206 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 207 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 208 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 209 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 210 | } | |
| 211 | ||
| 212 | } | |
| 213 | else if(Stunde == 06 && Minute == 00) | |
| 214 | {
| |
| 215 | for(new i; i<MAX_PLAYERS; i++) | |
| 216 | {
| |
| 217 | new string[128]; | |
| 218 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 219 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 220 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 221 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 222 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 223 | } | |
| 224 | ||
| 225 | } | |
| 226 | else if(Stunde == 07 && Minute == 00) | |
| 227 | {
| |
| 228 | for(new i; i<MAX_PLAYERS; i++) | |
| 229 | {
| |
| 230 | new string[128]; | |
| 231 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 232 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 233 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 234 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 235 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 236 | } | |
| 237 | ||
| 238 | } | |
| 239 | else if(Stunde == 08 && Minute == 00) | |
| 240 | {
| |
| 241 | for(new i; i<MAX_PLAYERS; i++) | |
| 242 | {
| |
| 243 | new string[128]; | |
| 244 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 245 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 246 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 247 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 248 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 249 | } | |
| 250 | ||
| 251 | } | |
| 252 | else if(Stunde == 09 && Minute == 00) | |
| 253 | {
| |
| 254 | for(new i; i<MAX_PLAYERS; i++) | |
| 255 | {
| |
| 256 | new string[128]; | |
| 257 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 258 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 259 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 260 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 261 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 262 | } | |
| 263 | ||
| 264 | } | |
| 265 | else if(Stunde == 10 && Minute == 00) | |
| 266 | {
| |
| 267 | for(new i; i<MAX_PLAYERS; i++) | |
| 268 | {
| |
| 269 | new string[128]; | |
| 270 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 271 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 272 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 273 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 274 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 275 | } | |
| 276 | ||
| 277 | } | |
| 278 | else if(Stunde == 11 && Minute == 00) | |
| 279 | {
| |
| 280 | for(new i; i<MAX_PLAYERS; i++) | |
| 281 | {
| |
| 282 | new string[128]; | |
| 283 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 284 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 285 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 286 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 287 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 288 | } | |
| 289 | ||
| 290 | } | |
| 291 | else if(Stunde == 12 && Minute == 00) | |
| 292 | {
| |
| 293 | for(new i; i<MAX_PLAYERS; i++) | |
| 294 | {
| |
| 295 | new string[128]; | |
| 296 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 297 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 298 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 299 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 300 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 301 | } | |
| 302 | ||
| 303 | } | |
| 304 | else if(Stunde == 13 && Minute == 00) | |
| 305 | {
| |
| 306 | for(new i; i<MAX_PLAYERS; i++) | |
| 307 | {
| |
| 308 | new string[128]; | |
| 309 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 310 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 311 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 312 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 313 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 314 | } | |
| 315 | ||
| 316 | } | |
| 317 | else if(Stunde == 14 && Minute == 00) | |
| 318 | {
| |
| 319 | for(new i; i<MAX_PLAYERS; i++) | |
| 320 | {
| |
| 321 | new string[128]; | |
| 322 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 323 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 324 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 325 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 326 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 327 | } | |
| 328 | ||
| 329 | } | |
| 330 | else if(Stunde == 15 && Minute == 00) | |
| 331 | {
| |
| 332 | for(new i; i<MAX_PLAYERS; i++) | |
| 333 | {
| |
| 334 | new string[128]; | |
| 335 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 336 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 337 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 338 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 339 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 340 | } | |
| 341 | ||
| 342 | } | |
| 343 | else if(Stunde == 16 && Minute == 00) | |
| 344 | {
| |
| 345 | for(new i; i<MAX_PLAYERS; i++) | |
| 346 | {
| |
| 347 | new string[128]; | |
| 348 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 349 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 350 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 351 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 352 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 353 | } | |
| 354 | ||
| 355 | } | |
| 356 | else if(Stunde == 17 && Minute == 00) | |
| 357 | {
| |
| 358 | for(new i; i<MAX_PLAYERS; i++) | |
| 359 | - | ocmd:mevent(playerid,params[]) |
| 359 | + | |
| 360 | new string[128]; | |
| 361 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 362 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 363 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 364 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 365 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 366 | } | |
| 367 | ||
| 368 | } | |
| 369 | else if(Stunde == 18 && Minute == 00) | |
| 370 | {
| |
| 371 | for(new i; i<MAX_PLAYERS; i++) | |
| 372 | {
| |
| 373 | new string[128]; | |
| 374 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 375 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 376 | - | ocmd:cpevent(playerid,params[]) |
| 376 | + | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); |
| 377 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 378 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 379 | } | |
| 380 | ||
| 381 | } | |
| 382 | else if(Stunde == 19 && Minute == 00) | |
| 383 | {
| |
| 384 | for(new i; i<MAX_PLAYERS; i++) | |
| 385 | {
| |
| 386 | new string[128]; | |
| 387 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 388 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 389 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 390 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 391 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 392 | } | |
| 393 | ||
| 394 | } | |
| 395 | else if(Stunde == 20 && Minute == 00) | |
| 396 | {
| |
| 397 | for(new i; i<MAX_PLAYERS; i++) | |
| 398 | {
| |
| 399 | new string[128]; | |
| 400 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 401 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 402 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 403 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 404 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 405 | } | |
| 406 | ||
| 407 | } | |
| 408 | else if(Stunde == 21 && Minute == 00) | |
| 409 | {
| |
| 410 | for(new i; i<MAX_PLAYERS; i++) | |
| 411 | {
| |
| 412 | new string[128]; | |
| 413 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 414 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 415 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 416 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 417 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 418 | } | |
| 419 | ||
| 420 | } | |
| 421 | else if(Stunde == 22 && Minute == 00) | |
| 422 | {
| |
| 423 | for(new i; i<MAX_PLAYERS; i++) | |
| 424 | {
| |
| 425 | new string[128]; | |
| 426 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 427 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 428 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 429 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 430 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 431 | } | |
| 432 | ||
| 433 | } | |
| 434 | else if(Stunde == 23 && Minute == 00) | |
| 435 | {
| |
| 436 | for(new i; i<MAX_PLAYERS; i++) | |
| 437 | {
| |
| 438 | new string[128]; | |
| 439 | format(string,sizeof(string),"Es ist %d:00 der Lotto gewinner/die Lotto gewinnerin wird um %d:02 bekannt gegeben.",Stunde,Stunde); | |
| 440 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 441 | format(string,sizeof(string),"Falls du am Lotto spiel teilnehmen willst verwende /lotto [Nummer].Der Aktuelle Jackpot beträgt : %d",LottoJackpot); | |
| 442 | SendClientMessageToAll(0x00CDFFFF,string); | |
| 443 | SetTimerEx("LottoGewinn",120000,1,"i",i);
| |
| 444 | } | |
| 445 | ||
| 446 | } | |
| 447 | return 1; | |
| 448 | } | |
| 449 | ||
| 450 | public OnFilterScriptExit() | |
| 451 | {
| |
| 452 | print("\n\n");
| |
| 453 | print("Multi-Filterscript System by SyoSmoo462 stoppt...\n\n");
| |
| 454 | return 1; | |
| 455 | } | |
| 456 | ||
| 457 | public OnPlayerConnect(playerid) | |
| 458 | {
| |
| 459 | return 1; | |
| 460 | } | |
| 461 | ||
| 462 | public OnPlayerDisconnect(playerid, reason) | |
| 463 | {
| |
| 464 | return 1; | |
| 465 | } | |
| 466 | ||
| 467 | public OnPlayerSpawn(playerid) | |
| 468 | {
| |
| 469 | return 1; | |
| 470 | } | |
| 471 | ||
| 472 | public OnPlayerDeath(playerid, killerid, reason) | |
| 473 | {
| |
| 474 | return 1; | |
| 475 | } | |
| 476 | ||
| 477 | public OnVehicleSpawn(vehicleid) | |
| 478 | {
| |
| 479 | return 1; | |
| 480 | } | |
| 481 | ||
| 482 | public OnVehicleDeath(vehicleid, killerid) | |
| 483 | {
| |
| 484 | return 1; | |
| 485 | } | |
| 486 | ||
| 487 | public OnPlayerText(playerid, text[]) | |
| 488 | {
| |
| 489 | return 1; | |
| 490 | } | |
| 491 | ||
| 492 | public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) | |
| 493 | {
| |
| 494 | return 1; | |
| 495 | } | |
| 496 | ||
| 497 | public OnPlayerExitVehicle(playerid, vehicleid) | |
| 498 | {
| |
| 499 | return 1; | |
| 500 | } | |
| 501 | ||
| 502 | public OnPlayerStateChange(playerid, newstate, oldstate) | |
| 503 | {
| |
| 504 | return 1; | |
| 505 | } | |
| 506 | ||
| 507 | public OnPlayerEnterCheckpoint(playerid) | |
| 508 | {
| |
| 509 | return 1; | |
| 510 | } | |
| 511 | ||
| 512 | public OnPlayerLeaveCheckpoint(playerid) | |
| 513 | {
| |
| 514 | return 1; | |
| 515 | } | |
| 516 | ||
| 517 | public OnPlayerEnterRaceCheckpoint(playerid) | |
| 518 | {
| |
| 519 | return 1; | |
| 520 | } | |
| 521 | ||
| 522 | public OnPlayerLeaveRaceCheckpoint(playerid) | |
| 523 | {
| |
| 524 | return 1; | |
| 525 | } | |
| 526 | ||
| 527 | public OnRconCommand(cmd[]) | |
| 528 | {
| |
| 529 | return 1; | |
| 530 | } | |
| 531 | ||
| 532 | public OnPlayerRequestSpawn(playerid) | |
| 533 | {
| |
| 534 | return 1; | |
| 535 | } | |
| 536 | ||
| 537 | public OnObjectMoved(objectid) | |
| 538 | {
| |
| 539 | return 1; | |
| 540 | } | |
| 541 | ||
| 542 | public OnPlayerObjectMoved(playerid, objectid) | |
| 543 | {
| |
| 544 | return 1; | |
| 545 | } | |
| 546 | ||
| 547 | public OnPlayerPickUpPickup(playerid, pickupid) | |
| 548 | {
| |
| 549 | return 1; | |
| 550 | } | |
| 551 | ||
| 552 | public OnVehicleMod(playerid, vehicleid, componentid) | |
| 553 | {
| |
| 554 | return 1; | |
| 555 | } | |
| 556 | ||
| 557 | public OnVehiclePaintjob(playerid, vehicleid, paintjobid) | |
| 558 | {
| |
| 559 | return 1; | |
| 560 | } | |
| 561 | ||
| 562 | public OnVehicleRespray(playerid, vehicleid, color1, color2) | |
| 563 | {
| |
| 564 | return 1; | |
| 565 | } | |
| 566 | ||
| 567 | public OnPlayerSelectedMenuRow(playerid, row) | |
| 568 | {
| |
| 569 | return 1; | |
| 570 | } | |
| 571 | ||
| 572 | public OnPlayerExitedMenu(playerid) | |
| 573 | {
| |
| 574 | return 1; | |
| 575 | } | |
| 576 | ||
| 577 | public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) | |
| 578 | {
| |
| 579 | return 1; | |
| 580 | } | |
| 581 | ||
| 582 | public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) | |
| 583 | {
| |
| 584 | return 1; | |
| 585 | } | |
| 586 | ||
| 587 | public OnRconLoginAttempt(ip[], password[], success) | |
| 588 | {
| |
| 589 | return 1; | |
| 590 | } | |
| 591 | ||
| 592 | public OnPlayerUpdate(playerid) | |
| 593 | {
| |
| 594 | f_OnPlayerUpdate(playerid); | |
| 595 | return 1; | |
| 596 | } | |
| 597 | ||
| 598 | public OnPlayerStreamIn(playerid, forplayerid) | |
| 599 | {
| |
| 600 | return 1; | |
| 601 | } | |
| 602 | ||
| 603 | public OnPlayerStreamOut(playerid, forplayerid) | |
| 604 | {
| |
| 605 | return 1; | |
| 606 | } | |
| 607 | ||
| 608 | public OnVehicleStreamIn(vehicleid, forplayerid) | |
| 609 | {
| |
| 610 | return 1; | |
| 611 | } | |
| 612 | ||
| 613 | public OnVehicleStreamOut(vehicleid, forplayerid) | |
| 614 | {
| |
| 615 | return 1; | |
| 616 | } | |
| 617 | ||
| 618 | public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) | |
| 619 | {
| |
| 620 | return 1; | |
| 621 | } | |
| 622 | ||
| 623 | public OnPlayerClickPlayer(playerid, clickedplayerid, source) | |
| 624 | {
| |
| 625 | return 1; | |
| 626 | } | |
| 627 | ||
| 628 | public CreateFeuer(id) | |
| 629 | {
| |
| 630 | switch(id) | |
| 631 | {
| |
| 632 | case 0: | |
| 633 | {
| |
| 634 | for(new i; i<MAX_PLAYERS; i++) | |
| 635 | {
| |
| 636 | FlamesLeft = 7; | |
| 637 | SendClientMessageToAll(0xFFFFFFFF, "ACHTUNG : Ein Feuer brach am {00FF00}LS Einkaufszentrum{FFFFFF} aus!");
| |
| 638 | AddFire(1109.7426,-1518.5206,15.7969, random(100), 0); | |
| 639 | AddFire(1109.4607,-1517.0424,15.7969, random(100), 0); | |
| 640 | AddFire(1110.8823,-1518.2303,15.7969, random(100), 0); | |
| 641 | AddFire(1111.1472,-1519.8075,15.7969, random(100), 0); | |
| 642 | AddFire(1108.0875,-1516.2218,15.7969, random(100), 0); | |
| 643 | AddFire(1107.0024,-1516.8269,15.7969, random(100), 0); | |
| 644 | AddFire(1108.9535,-1514.8013,15.7969, random(100), 0); | |
| 645 | mx = 1109.7426; | |
| 646 | my=-1518.5206; | |
| 647 | mz=15.7969; | |
| 648 | SetPlayerCheckpoint(i, mx, my, mz, 3.0); | |
| 649 | } | |
| 650 | } | |
| 651 | case 1: | |
| 652 | {
| |
| 653 | for(new i; i<MAX_PLAYERS; i++) | |
| 654 | {
| |
| 655 | FlamesLeft = 7; | |
| 656 | SendClientMessageToAll(0xFFFFFFFF, "ACHTUNG : Ein Feuer brach am {00FF00}LS Krankenhaus{FFFFFF} aus!");
| |
| 657 | AddFire(2017.7671,-1437.9889,14.3000, random(100), 0); | |
| 658 | AddFire(2019.3118,-1436.9531,14.3859, random(100), 0); | |
| 659 | AddFire(2019.1769,-1438.8497,14.7842, random(100), 0); | |
| 660 | AddFire(2018.9347,-1440.3239,15.0654, random(100), 0); | |
| 661 | AddFire(2020.1074,-1440.3599,15.3154, random(100), 0); | |
| 662 | AddFire(2021.1141,-1439.6196,15.3568, random(100), 0); | |
| 663 | AddFire(2023.2761,-1441.0536,16.1249, random(100), 0); | |
| 664 | mx=2017.7671; | |
| 665 | my=-1437.9889; | |
| 666 | mz=14.3000; | |
| 667 | SetPlayerCheckpoint(i, mx, my, mz, 3.0); | |
| 668 | } | |
| 669 | } | |
| 670 | case 2: | |
| 671 | {
| |
| 672 | for(new i; i<MAX_PLAYERS; i++) | |
| 673 | {
| |
| 674 | FlamesLeft = 7; | |
| 675 | SendClientMessageToAll(0xFFFFFFFF, "ACHTUNG : Ein Feuer brach am {00FF00}Los Santos Police Department{FFFFFF} aus!");
| |
| 676 | AddFire(1486.9941,-1667.0309,14.5532, random(100), 0); | |
| 677 | AddFire(1486.4098,-1664.8375,14.5532, random(100), 0); | |
| 678 | AddFire(1487.9250,-1664.5344,14.5532, random(100), 0); | |
| 679 | AddFire(1484.6763,-1666.7335,14.5532, random(100), 0); | |
| 680 | AddFire(1482.4634,-1667.3370,14.5532, random(100), 0); | |
| 681 | AddFire(1482.3033,-1665.4377,14.5532, random(100), 0); | |
| 682 | AddFire(1483.2228,-1663.8508,14.5532, random(100), 0); | |
| 683 | mx=1486.9941; | |
| 684 | my=-1667.0309; | |
| 685 | mz=14.5532; | |
| 686 | SetPlayerCheckpoint(i, mx, my, mz, 3.0); | |
| 687 | } | |
| 688 | } | |
| 689 | } | |
| 690 | return 1; | |
| 691 | } | |
| 692 | ||
| 693 | public OnFireDeath(ID, killerid) | |
| 694 | {
| |
| 695 | FlamesLeft--; | |
| 696 | GivePlayerMoney(killerid, random(MIN_GELD + (MAX_GELD - MIN_GELD))); | |
| 697 | if(!FlamesLeft) | |
| 698 | {
| |
| 699 | SendClientMessageToAll(0xFFFFFFFF, "Das {FF0000}Feuer{FFFFFF} wurde {00FF00}gelöscht{FFFFFF}!");
| |
| 700 | //SetTimerEx("CreateFire", random(60000) + 80000, false, "i", random(MAX_FEUER));
| |
| 701 | } | |
| 702 | return 1; | |
| 703 | } | |
| 704 | ||
| 705 | public LottoGewinn() | |
| 706 | {
| |
| 707 | new rand = random(sizeof(LottoWinnNumber)); | |
| 708 | for(new i=0; i<MAX_PLAYERS; i++) | |
| 709 | {
| |
| 710 | if(rand == Spieler[i][LottoNr]) | |
| 711 | {
| |
| 712 | new string[128]; | |
| 713 | GivePlayerMoney(i,LottoJackpot); | |
| 714 | SendClientMessage(i,gruen,"Herzlichen Glückwunsch, sie haben das Lotto gewonnen."); | |
| 715 | format(string,sizeof(string),"Die Heutige Gewinn Zahl lautet %d",LottoWinnNumber); | |
| 716 | SendClientMessageToAll(weiß,string); | |
| 717 | format(string,sizeof(string),"%s hat %d$ gewonnen",SpielerName(i),LottoJackpot); | |
| 718 | SendClientMessageToAll(weiß,string); | |
| 719 | LottoJackpot = 20000; | |
| 720 | SendClientMessageToAll(weiß,"Der Jackpot wurde zurückgesetzt!"); | |
| 721 | } | |
| 722 | else | |
| 723 | {
| |
| 724 | new string[128]; | |
| 725 | format(string,sizeof(string),"Die Heutige Gewinn Zahl lautet %d.",LottoWinnNumber); | |
| 726 | SendClientMessageToAll(weiß,string); | |
| 727 | SendClientMessageToAll(weiß,"Es hat Niemand gewonnen."); | |
| 728 | format(string,sizeof(string),"Der Jackpot ist %d.",LottoJackpot); | |
| 729 | SendClientMessageToAll(weiß,string); | |
| 730 | } | |
| 731 | Spieler[i][LottoTicket] = 0; | |
| 732 | } | |
| 733 | return 1; | |
| 734 | } | |
| 735 | ||
| 736 | ocmd:makeevent(playerid,params[]) | |
| 737 | {
| |
| 738 | if(IsPlayerAdmin(playerid)) | |
| 739 | {
| |
| 740 | new str[128]; | |
| 741 | ||
| 742 | SendClientMessage(playerid, grau, "Du hast ein Event an dieser Position gesetzt!"); | |
| 743 | format(str,sizeof(str),"%s hat ein Event gesetzt um dahin zu kommen mach /eventpos!",SpielerName(playerid)); | |
| 744 | SendClientMessageToAll(orange,str); | |
| 745 | EventAktiv = 1; | |
| 746 | } | |
| 747 | else | |
| 748 | {
| |
| 749 | return SendClientMessage(playerid,grau,"Du bist nicht befugt!"); | |
| 750 | } | |
| 751 | return 1; | |
| 752 | } | |
| 753 | ocmd:eventpos(playerid,params[]) | |
| 754 | {
| |
| 755 | if(EventAktiv == 1) | |
| 756 | {
| |
| 757 | SetPlayerCheckpoint(playerid,EventPosX,EventPosY,EventPosZ,3.0); | |
| 758 | } | |
| 759 | else | |
| 760 | {
| |
| 761 | SendClientMessage(playerid,grau,"Es ist kein Event Aktiv!"); | |
| 762 | } | |
| 763 | return 1; | |
| 764 | } | |
| 765 | ocmd:eventaus(playerid,params[]) | |
| 766 | {
| |
| 767 | if(IsPlayerAdmin(playerid)) | |
| 768 | {
| |
| 769 | if(EventAktiv == 1) | |
| 770 | {
| |
| 771 | SendClientMessageToAll(grau, "Das Event wurde ausgeschaltet!"); | |
| 772 | EventAktiv = 0; | |
| 773 | } | |
| 774 | else | |
| 775 | {
| |
| 776 | SendClientMessage(playerid,grau,"Es ist kein Event Aktiv!"); | |
| 777 | } | |
| 778 | } | |
| 779 | else | |
| 780 | {
| |
| 781 | SendClientMessage(playerid, grau, "Du bist nicht befugt"); | |
| 782 | } | |
| 783 | return 1; | |
| 784 | } | |
| 785 | ocmd:Filterscriptinfo(playerid,params[]) | |
| 786 | {
| |
| 787 | SendClientMessage(playerid,ablau,"Multi-Filterscript bei SyoSmoo462"); | |
| 788 | SendClientMessage(playerid,ablau,"Filterscript Version : 0.2"); | |
| 789 | return 1; | |
| 790 | } | |
| 791 | ocmd:mfsbefehle(playerid,params[]) | |
| 792 | {
| |
| 793 | SendClientMessage(playerid,ablau," || Alle Befehle ||"); | |
| 794 | SendClientMessage(playerid,ablau," ---------------------------------------------------------"); | |
| 795 | SendClientMessage(playerid,ablau," Befehl : | Beschreibung :"); | |
| 796 | SendClientMessage(playerid,ablau," ---------------------------------------------------------"); | |
| 797 | SendClientMessage(playerid,ablau," /mevent | Erstellt ein Event(als Checkpoint) an deiner"); | |
| 798 | SendClientMessage(playerid,ablau," position(Checkpoint wird mit /event erstellt Rcon Admin)."); | |
| 799 | SendClientMessage(playerid,ablau," ---------------------------------------------------------"); | |
| 800 | SendClientMessage(playerid,ablau," /event | Erstellt ein Checkpoint vom Aktuellen Event"); | |
| 801 | SendClientMessage(playerid,ablau," Punkt."); | |
| 802 | SendClientMessage(playerid,ablau," ---------------------------------------------------------"); | |
| 803 | SendClientMessage(playerid,ablau," /eventaus | Macht das Event aus(wenn ein User jetzt den"); | |
| 804 | SendClientMessage(playerid,ablau," befehl /event macht geht es nicht. Rcon Admin)."); | |
| 805 | SendClientMessage(playerid,ablau," ---------------------------------------------------------"); | |
| 806 | SendClientMessage(playerid,ablau," /Filterscriptinfo | Infos zum Multi-Filterscript"); | |
| 807 | SendClientMessage(playerid,ablau," ---------------------------------------------------------"); | |
| 808 | SendClientMessage(playerid,ablau," /countdown | Erstellt einen Countdown(RCON ADMIN)."); | |
| 809 | SendClientMessage(playerid,ablau," ---------------------------------------------------------"); | |
| 810 | SendClientMessage(playerid,ablau," /lotto | Damit kauft man sich einen Lotterischein"); | |
| 811 | SendClientMessage(playerid,ablau," ---------------------------------------------------------"); | |
| 812 | return 1; | |
| 813 | } | |
| 814 | ocmd:countdown(playerid,params[]) | |
| 815 | {
| |
| 816 | for(new i; i<MAX_PLAYERS; i++) | |
| 817 | {
| |
| 818 | if(IsPlayerAdmin(playerid)) | |
| 819 | {
| |
| 820 | GameTextForAll("~b~5",5000,0);
| |
| 821 | SetTimerEx("Countdown4",5000,1,"i",i);
| |
| 822 | } | |
| 823 | else | |
| 824 | {
| |
| 825 | SendClientMessage(playerid,grau,"Du bist nicht befugt"); | |
| 826 | } | |
| 827 | } | |
| 828 | return 1; | |
| 829 | } | |
| 830 | ocmd:lotto(playerid,params[]) | |
| 831 | {
| |
| 832 | if(Spieler[playerid][LottoTicket] == 0) | |
| 833 | {
| |
| 834 | new string[128]; | |
| 835 | new Nummer; | |
| 836 | if(sscanf(params,"d",Nummer)) return SendClientMessage(playerid,grau,"Verwendung : /Lotto [Nummer]"); | |
| 837 | if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid,grau,"Du brauchst 2000$ um ein Ticket zu kaufen"); | |
| 838 | format(string,sizeof(string),"Das Lotto Ticket hat dich 2000$ gekostet.Deine Lotto nummer Lautet %d.(Jackpot : %d)Viel Glück!",Nummer,LottoJackpot); | |
| 839 | SendClientMessage(playerid,0x00CDFFFF,string); | |
| 840 | GivePlayerMoney(playerid, -2000); | |
| 841 | Spieler[playerid][LottoNr] = Nummer; | |
| 842 | Spieler[playerid][LottoTicket] = 1; | |
| 843 | LottoJackpot += 2000; | |
| 844 | } | |
| 845 | else | |
| 846 | {
| |
| 847 | return SendClientMessage(playerid,grau,"Du hast bereits ein Ticket"); | |
| 848 | } | |
| 849 | return 1; | |
| 850 | } | |
| 851 | //==========================STOCKS/Funktionen===================================// | |
| 852 | stock SpielerName(playerid) | |
| 853 | {
| |
| 854 | new name[128]; | |
| 855 | GetPlayerName(playerid,name,sizeof(name)); | |
| 856 | return name; | |
| 857 | } | |
| 858 | ||
| 859 | ||
| 860 | Funktion Countdown4() | |
| 861 | {
| |
| 862 | for(new i; i<MAX_PLAYERS; i++) | |
| 863 | {
| |
| 864 | GameTextForAll("~b~4",5000,0);
| |
| 865 | SetTimerEx("Countdown3",5000,1,"i",i);
| |
| 866 | } | |
| 867 | return 1; | |
| 868 | } | |
| 869 | ||
| 870 | Funktion Countdown3() | |
| 871 | {
| |
| 872 | for(new i; i<MAX_PLAYERS; i++) | |
| 873 | {
| |
| 874 | GameTextForAll("~b~3",5000,0);
| |
| 875 | SetTimerEx("Countdown2",5000,1,"i",i);
| |
| 876 | } | |
| 877 | return 1; | |
| 878 | } | |
| 879 | ||
| 880 | Funktion Countdown2() | |
| 881 | {
| |
| 882 | for(new i; i<MAX_PLAYERS; i++) | |
| 883 | {
| |
| 884 | GameTextForAll("~b~2",5000,0);
| |
| 885 | SetTimerEx("Countdown1",5000,1,"i",i);
| |
| 886 | } | |
| 887 | return 1; | |
| 888 | } | |
| 889 | ||
| 890 | Funktion Countdown1() | |
| 891 | {
| |
| 892 | for(new i; i<MAX_PLAYERS; i++) | |
| 893 | {
| |
| 894 | GameTextForAll("~b~1",5000,0);
| |
| 895 | SetTimerEx("CountdownLos",5000,1,"i",i);
| |
| 896 | } | |
| 897 | return 1; | |
| 898 | } | |
| 899 | ||
| 900 | Funktion CountdownLos() | |
| 901 | {
| |
| 902 | GameTextForAll("~b~Los Geht's",5000,0);
| |
| 903 | return 1; | |
| 904 | } |