SHOW:
|
|
- or go back to the newest paste.
| 1 | /* | |
| 2 | (******************************Credits**********************************) | |
| 3 | (******************************GunGame**********************************) | |
| 4 | (_______________________________________________________________________) | |
| 5 | - | (_______________________________________________________________________) |
| 5 | + | |
| 6 | ####### # ##### ##### ##### ##### ##### #### # # ###### | |
| 7 | # # # # # # # # # # # ## ## # | |
| 8 | # # # # # # # # # # # # # # # # | |
| 9 | ####### # ##### ##### ##### # # # #### # # # # | |
| 10 | # # # # # # # # # # # # # # | |
| 11 | # # # # # # # # # # # # # # | |
| 12 | # # # # ##### ##### # ##### # # # # ###### | |
| 13 | - | (***************************Version: 1.47*******************************) |
| 13 | + | |
| 14 | - | |
| 14 | + | (***************************Version: 1.6********************************) |
| 15 | ||
| 16 | */ | |
| 17 | ||
| 18 | #include <a_samp> | |
| 19 | #include <dini> | |
| 20 | - | #include <sscanf> |
| 20 | + | |
| 21 | #include <ocmd> | |
| 22 | #include <mSelection> | |
| 23 | ||
| 24 | #undef MAX_PLAYERS | |
| 25 | #define MAX_PLAYERS (100) | |
| 26 | ||
| 27 | #define BLAU 0x0073FFA3 | |
| 28 | #define GRUEN 0x23D600FF | |
| 29 | #define ROT 0xFF0019FF | |
| 30 | #define WEISS 0xFFFFFF00 | |
| 31 | #define GELB 0xFFE600B7 | |
| 32 | #define ORANGE 0xFF9600FF | |
| 33 | #define SCHWARZ 0x000000FF | |
| 34 | #define GRAU 0xA0A0A0FF | |
| 35 | ||
| 36 | #define DIALOG_Bomben 5 | |
| 37 | #define DIALOG_Drohne 6 | |
| 38 | #define DIALOG_Panzer 7 | |
| 39 | #define DIALOG_WAFFE 8 | |
| 40 | #define DIALOG_REGISTER 9 | |
| 41 | #define DIALOG_LOGIN 10 | |
| 42 | #define DIALOG_MusikAuswahl 19 | |
| 43 | #define DIALOG_Charts 20 | |
| 44 | #define DIALOG_HipHop 21 | |
| 45 | #define DIALOG_Rock 22 | |
| 46 | #define DIALOG_Sonstiges 23 | |
| 47 | #define Skin_Liste 24 | |
| 48 | ||
| 49 | - | new PlayerText:Textdraw0[MAX_PLAYERS]; |
| 49 | + | new PlayerText:Textdraw[MAX_PLAYERS][20]; |
| 50 | - | new PlayerText:Textdraw1[MAX_PLAYERS]; |
| 50 | + | |
| 51 | - | new PlayerText:Textdraw2[MAX_PLAYERS]; |
| 51 | + | |
| 52 | - | new PlayerText:Textdraw3[MAX_PLAYERS]; |
| 52 | + | |
| 53 | - | new PlayerText:Textdraw4[MAX_PLAYERS]; |
| 53 | + | |
| 54 | - | new PlayerText:Textdraw5[MAX_PLAYERS]; |
| 54 | + | |
| 55 | {257.5329,28.9041,996.1189,208.9821},
| |
| 56 | - | new PlayerText:Textdraw6[MAX_PLAYERS]; |
| 56 | + | |
| 57 | - | new PlayerText:Textdraw7[MAX_PLAYERS]; |
| 57 | + | |
| 58 | - | new PlayerText:Textdraw8[MAX_PLAYERS]; |
| 58 | + | |
| 59 | - | new PlayerText:Textdraw9[MAX_PLAYERS]; |
| 59 | + | |
| 60 | - | new PlayerText:Textdraw10[MAX_PLAYERS]; |
| 60 | + | |
| 61 | - | new PlayerText:Textdraw11[MAX_PLAYERS]; |
| 61 | + | |
| 62 | - | new PlayerText:Textdraw12[MAX_PLAYERS]; |
| 62 | + | |
| 63 | - | new PlayerText:Textdraw13[MAX_PLAYERS]; |
| 63 | + | |
| 64 | - | new PlayerText:Textdraw14[MAX_PLAYERS]; |
| 64 | + | |
| 65 | - | new PlayerText:Textdraw15[MAX_PLAYERS]; |
| 65 | + | |
| 66 | - | new PlayerText:Textdraw16[MAX_PLAYERS]; |
| 66 | + | |
| 67 | - | new PlayerText:Textdraw17[MAX_PLAYERS]; |
| 67 | + | |
| 68 | - | new PlayerText:Textdraw18[MAX_PLAYERS]; |
| 68 | + | |
| 69 | - | new PlayerText:Textdraw19[MAX_PLAYERS]; |
| 69 | + | |
| 70 | new Tode[MAX_PLAYERS]; | |
| 71 | new KwoD[MAX_PLAYERS]; | |
| 72 | new Bombe[MAX_PLAYERS]; | |
| 73 | new Drohne[MAX_PLAYERS]; | |
| 74 | new Skinchange[MAX_PLAYERS]; | |
| 75 | new Skin[MAX_PLAYERS]; | |
| 76 | new NextWeapon, Stunde, Minute, Tag, Monat, Jahr; | |
| 77 | new Timer[MAX_PLAYERS],Timer1[MAX_PLAYERS],Timer2[MAX_PLAYERS]; | |
| 78 | new Panzer[MAX_PLAYERS]; | |
| 79 | ||
| 80 | main() | |
| 81 | {
| |
| 82 | print("\n----------------------------------");
| |
| 83 | print("GunGame by firestormZ");
| |
| 84 | print("----------------------------------\n");
| |
| 85 | } | |
| 86 | public KICK(playerid) | |
| 87 | {
| |
| 88 | FreezePlayer(playerid,1); | |
| 89 | Kick(playerid); | |
| 90 | return 1; | |
| 91 | } | |
| 92 | ||
| 93 | public Check(playerid) | |
| 94 | {
| |
| 95 | new Waffentext[20],string0[64],string1[64],string2[64], Spielerdatei[64], name[MAX_PLAYER_NAME], pIP[16], | |
| 96 | - | new NextWeapon,Stunde,Minute, Tag, Monat, Jahr; |
| 96 | + | Waffe = gungame[playerid], string[128],Float:health,Float:armor; |
| 97 | - | new Timer[MAX_PLAYERS],Timer1[MAX_PLAYERS],Timer2[MAX_PLAYERS],Timer3[MAX_PLAYERS],Timer4[MAX_PLAYERS],Timer5[MAX_PLAYERS]; |
| 97 | + | |
| 98 | {
| |
| 99 | for(new i = 0; i < MAX_PLAYERS; i++) | |
| 100 | {
| |
| 101 | SetPlayerMarkerForPlayer(playerid, i, ROT); | |
| 102 | } | |
| 103 | } | |
| 104 | if(Waffe == 0) (Waffentext= "9mm"); | |
| 105 | else if(Waffe == 1) (Waffentext= "9mm SD"); | |
| 106 | else if(Waffe == 2) (Waffentext="Desert Eagle"); | |
| 107 | else if(Waffe == 3) (Waffentext="Uzi"); | |
| 108 | else if(Waffe == 4) (Waffentext="Tec-9"); | |
| 109 | else if(Waffe == 5) (Waffentext="AK-47"); | |
| 110 | else if(Waffe == 6) (Waffentext="Shotgun"); | |
| 111 | else if(Waffe == 7) (Waffentext="Combat Shotgun"); | |
| 112 | else if(Waffe == 8) (Waffentext="M4"); | |
| 113 | else if(Waffe == 9) (Waffentext="Country Rifle"); | |
| 114 | else if(Waffe == 10) (Waffentext="Sniper"); | |
| 115 | - | new Waffentext[20],string0[64],string1[64],string2[64]; |
| 115 | + | |
| 116 | - | new Waffe = gungame[playerid]; |
| 116 | + | |
| 117 | else if(Waffe == 13) (Waffentext="Flammenwerfer"); | |
| 118 | else if(Waffe == 14) (Waffentext="Minigun"); | |
| 119 | else if(Waffe == 15) (Waffentext="Kettensaege"); | |
| 120 | format(string0,sizeof(string0),"%d", Kills[playerid]); | |
| 121 | PlayerTextDrawSetString(playerid, Textdraw[playerid][2], string0); | |
| 122 | format(string1,sizeof(string1),"%d", Tode[playerid]); | |
| 123 | PlayerTextDrawSetString(playerid, Textdraw[playerid][3], string1); | |
| 124 | format(string2,sizeof(string2),"%s", Waffentext); | |
| 125 | PlayerTextDrawSetString(playerid, Textdraw[playerid][5], string2); | |
| 126 | GetPlayerIp(playerid,pIP,sizeof(pIP)); | |
| 127 | GetPlayerName(playerid,name,sizeof(name)); | |
| 128 | format(Spielerdatei,sizeof(Spielerdatei),"/AccountsGunGame/%s.ini",name); | |
| 129 | dini_Set(Spielerdatei,"IP",pIP); | |
| 130 | SetPlayerScore(playerid, GetPVarInt(playerid,"Level")); | |
| 131 | GetPlayerHealth(playerid,health); | |
| 132 | GetPlayerArmour(playerid,armor); | |
| 133 | format(string,sizeof(string),"%d/100\n{FF0019}%d/100", floatround(armor),floatround(health));
| |
| 134 | - | PlayerTextDrawSetString(playerid, Textdraw2[playerid], string0); |
| 134 | + | |
| 135 | } | |
| 136 | - | PlayerTextDrawSetString(playerid, Textdraw3[playerid], string1); |
| 136 | + | |
| 137 | {
| |
| 138 | - | PlayerTextDrawSetString(playerid, Textdraw5[playerid], string2); |
| 138 | + | |
| 139 | } | |
| 140 | public DrohnenTimer(playerid) | |
| 141 | {
| |
| 142 | for(new i = 0; i < MAX_PLAYERS; i++) | |
| 143 | {
| |
| 144 | SetPlayerMarkerForPlayer(playerid, i, WEISS); | |
| 145 | } | |
| 146 | Drohne[playerid] = 0; | |
| 147 | SendClientMessage(playerid,ROT,"Drohne ausgeschaltet."); | |
| 148 | - | new pIP[16]; |
| 148 | + | |
| 149 | public PanzerTimer(playerid) | |
| 150 | {
| |
| 151 | if(!IsPlayerInAnyVehicle(playerid)) return DestroyVehicle(Panzer[playerid]); | |
| 152 | {
| |
| 153 | DestroyVehicle(GetPlayerVehicleID(playerid)); | |
| 154 | SendClientMessage(playerid,ROT,"Panzer zerstört."); | |
| 155 | - | public CheckHA(playerid) |
| 155 | + | |
| 156 | return 1; | |
| 157 | - | new string[128],Float:health,Float:armor; |
| 157 | + | |
| 158 | ||
| 159 | public OnGameModeInit() | |
| 160 | {
| |
| 161 | SetGameModeText("GunGame v1.47");
| |
| 162 | DisableInteriorEnterExits(); | |
| 163 | ShowPlayerMarkers(1); | |
| 164 | ShowNameTags(0); | |
| 165 | LimitPlayerMarkerRadius(100); | |
| 166 | EnableStuntBonusForAll(0); | |
| 167 | //Arena | |
| 168 | NextWeapon = CreatePickup(1274, 1, 272.0984,-11.3122,995.2996); | |
| 169 | CreateObject(14588, 260.2998046875, 29.69921875, 998.20001220703, 0, 0, 0); | |
| 170 | CreateObject(3034, 243.60000610352, 66.099998474121, 999.5, 0, 0, 90); | |
| 171 | CreateObject(3034, 243.60000610352, 47.900001525879, 1001.200012207, 0, 0, 90); | |
| 172 | CreateObject(3034, 243.60000610352, 47.900001525879, 999.5, 0, 0, 90); | |
| 173 | CreateObject(3034, 243.60000610352, 66.099998474121, 1001.200012207, 0, 0, 90); | |
| 174 | CreateObject(3034, 243.599609375, 37.099609375, 999.40002441406, 0, 0, 90); | |
| 175 | CreateObject(3034, 243.60000610352, 37.099998474121, 1001.0999755859, 0, 0, 90); | |
| 176 | CreateObject(3034, 243.599609375, 27.8994140625, 999.40002441406, 0, 0, 90); | |
| 177 | CreateObject(3034, 243.599609375, 27.8994140625, 1001.0999755859, 0, 0, 90); | |
| 178 | CreateObject(3034, 243.80000305176, 10.199999809265, 1001.0999755859, 0, 0, 90); | |
| 179 | CreateObject(3034, 243.80000305176, 10.199999809265, 999.40002441406, 0, 0, 90); | |
| 180 | CreateObject(3034, 243.60000610352, 4.0999999046326, 1001.0999755859, 0, 0, 90); | |
| 181 | CreateObject(3034, 243.60000610352, 4.0999999046326, 999.40002441406, 0, 0, 90); | |
| 182 | CreateObject(16501, 243, 47.900001525879, 1000.9000244141, 0, 0, 0); | |
| 183 | CreateObject(16501, 243.39999389648, 65.900001525879, 1000.700012207, 0, 0, 0); | |
| 184 | CreateObject(16501, 243.39999389648, 36.799999237061, 1000.5, 0, 0, 0); | |
| 185 | CreateObject(16501, 243.39999389648, 27.89999961853, 1000.5, 0, 0, 0); | |
| 186 | CreateObject(16501, 243.39999389648, 10.89999961853, 1000.5, 0, 0, 0); | |
| 187 | CreateObject(16501, 243.39999389648, 3.4000000953674, 1000.5, 0, 0, 0); | |
| 188 | CreateObject(1688, 266.10000610352, 69.900001525879, 995.29998779297, 0, 0, 0); | |
| 189 | CreateObject(2649, 265.29998779297, 67.699996948242, 994.79998779297, 0, 0, 0); | |
| 190 | CreateObject(3384, 276, 70.099998474121, 995.70001220703, 0, 0, 0); | |
| 191 | CreateObject(920, 270.10000610352, 70, 994.70001220703, 0, 0, 0); | |
| 192 | CreateObject(934, 245.19999694824, 62.200000762939, 995.59997558594, 0, 0, 0); | |
| 193 | CreateObject(934, 245.19999694824, 51.700000762939, 995.59997558594, 0, 0, 0); | |
| 194 | CreateObject(943, 275.70001220703, 42.5, 994.90002441406, 0, 0, 0); | |
| 195 | CreateObject(958, 271.10000610352, 41.200000762939, 995.20001220703, 0, 0, 0); | |
| 196 | CreateObject(1353, 264.60000610352, 41.200000762939, 995, 0, 0, 0); | |
| 197 | CreateObject(1687, 259.89999389648, 70, 995.09997558594, 0, 0, 0); | |
| 198 | CreateObject(3502, 273.10000610352, 16.799999237061, 996, 0, 0, 16); | |
| 199 | CreateObject(3502, 269.20001220703, 24.799999237061, 996, 0, 0, 329); | |
| 200 | CreateObject(1688, 274.60000610352, 39, 995.29998779297, 0, 0, 0); | |
| 201 | CreateObject(1635, 276.39999389648, 35.5, 1000.5, 0, 0, 0); | |
| 202 | CreateObject(1635, 276.39999389648, 48.400001525879, 1000.5, 0, 0, 0); | |
| 203 | CreateObject(927, 273.89999389648, 39.700000762939, 997.20001220703, 0, 0, 0); | |
| 204 | CreateObject(943, 266.60000610352, 38.900001525879, 995.09997558594, 0, 0, 89.25); | |
| 205 | CreateObject(943, 264.60000610352, 36.5, 995.09997558594, 0, 0, 176.74743652344); | |
| 206 | CreateObject(3585, 258.29998779297, 27.39999961853, 995.90002441406, 0, 0, 300); | |
| 207 | CreateObject(939, 244.69999694824, 28.200000762939, 996.79998779297, 0, 0, 90); | |
| 208 | CreateObject(1348, 244.89999389648, 32.400001525879, 994.90002441406, 0, 0, 0); | |
| 209 | CreateObject(3585, 253.39999389648, 51.799999237061, 995.90002441406, 0, 0, 267.99816894531); | |
| 210 | CreateObject(2934, 246.5, 11.199999809265, 995.79998779297, 0, 0, 0); | |
| 211 | CreateObject(2934, 271.39999389648, 57, 995.79998779297, 0, 0, 320); | |
| 212 | CreateObject(2934, 271.70001220703, 48.599998474121, 995.79998779297, 0, 0, 319.99877929688); | |
| 213 | CreateObject(1492, 269.5, -4.1999998092651, 994.29998779297, 0, 0, 0); | |
| 214 | CreateObject(2376, 270.69921875, -10.599609375, 994.29998779297, 0, 0, 89.747314453125); | |
| 215 | CreateObject(2376, 274.099609375, -10.599609375, 994.29998779297, 0, 0, 89.747314453125); | |
| 216 | CreateObject(2669, 279.5, 52.700000762939, 995.5, 0, 0, 269.75); | |
| 217 | return 1; | |
| 218 | } | |
| 219 | ||
| 220 | public OnGameModeExit() | |
| 221 | {
| |
| 222 | for(new i = 0; i < MAX_PLAYERS; i++) | |
| 223 | {
| |
| 224 | SpielerSpeichern(i); | |
| 225 | } | |
| 226 | return 1; | |
| 227 | } | |
| 228 | ||
| 229 | public OnPlayerRequestClass(playerid, classid) | |
| 230 | {
| |
| 231 | SetPlayerVirtualWorld(playerid,1); | |
| 232 | SetPlayerInterior(playerid,10); | |
| 233 | SetPlayerPos(playerid, 259.3465,25.6167,996.1189); | |
| 234 | SetPlayerFacingAngle(playerid,26.6203); | |
| 235 | SetPlayerCameraPos(playerid,256.7527,30.0204,996.1189); | |
| 236 | SetPlayerCameraLookAt(playerid,259.7401,24.7447,996.1189); | |
| 237 | SetPlayerSkin(playerid, 293); | |
| 238 | return 1; | |
| 239 | } | |
| 240 | ||
| 241 | public OnPlayerConnect(playerid) | |
| 242 | {
| |
| 243 | new string[64]; | |
| 244 | CreateInfo(playerid); | |
| 245 | Skinchange[playerid] = 1; | |
| 246 | format(string,sizeof string,"%s hat den Server betreten!",SpielerName(playerid)); | |
| 247 | SendClientMessageToAll(ROT,string); | |
| 248 | printf(string); | |
| 249 | SetPlayerColor(playerid,WEISS); | |
| 250 | if(IsPlayerNPC(playerid))return 1; | |
| 251 | new Spielerdatei[64]; | |
| 252 | new name[MAX_PLAYER_NAME]; | |
| 253 | GetPlayerName(playerid,name,sizeof(name)); | |
| 254 | format(Spielerdatei,sizeof(Spielerdatei),"/AccountsGunGame/%s.ini",name); | |
| 255 | if(dini_Int(Spielerdatei,"Banned")==1) | |
| 256 | {
| |
| 257 | SendClientMessage(playerid,ROT,"Du bist gebannt, bitte wende dich an einem Administrator!"); | |
| 258 | SetTimerEx("KICK",200,false,"i",playerid);
| |
| 259 | return 1; | |
| 260 | } | |
| 261 | PlayerTextDrawShow(playerid,Textdraw[playerid][6]); | |
| 262 | PlayerTextDrawShow(playerid,Textdraw[playerid][7]); | |
| 263 | PlayerTextDrawShow(playerid,Textdraw[playerid][8]); | |
| 264 | PlayerTextDrawShow(playerid,Textdraw[playerid][9]); | |
| 265 | PlayerTextDrawShow(playerid,Textdraw[playerid][10]); | |
| 266 | PlayerTextDrawShow(playerid,Textdraw[playerid][11]); | |
| 267 | PlayerTextDrawShow(playerid,Textdraw[playerid][12]); | |
| 268 | PlayerTextDrawShow(playerid,Textdraw[playerid][13]); | |
| 269 | PlayerTextDrawShow(playerid,Textdraw[playerid][14]); | |
| 270 | PlayerTextDrawShow(playerid,Textdraw[playerid][15]); | |
| 271 | PlayerTextDrawShow(playerid,Textdraw[playerid][16]); | |
| 272 | PlayerTextDrawShow(playerid,Textdraw[playerid][17]); | |
| 273 | PlayerTextDrawShow(playerid,Textdraw[playerid][18]); | |
| 274 | PlayerTextDrawShow(playerid,Textdraw[playerid][19]); | |
| 275 | SelectTextDraw(playerid, ROT); | |
| 276 | return 1; | |
| 277 | } | |
| 278 | ||
| 279 | public OnPlayerDisconnect(playerid, reason) | |
| 280 | {
| |
| 281 | for(new i = 0; i < MAX_PLAYER_TEXT_DRAWS; i++) | |
| 282 | {
| |
| 283 | PlayerTextDrawDestroy(playerid, PlayerText:i); | |
| 284 | } | |
| 285 | SpielerSpeichern(playerid); | |
| 286 | new string[512]; | |
| 287 | switch(reason) | |
| 288 | - | PlayerTextDrawShow(playerid,Textdraw6[playerid]); |
| 288 | + | |
| 289 | - | PlayerTextDrawShow(playerid,Textdraw7[playerid]); |
| 289 | + | |
| 290 | - | PlayerTextDrawShow(playerid,Textdraw8[playerid]); |
| 290 | + | |
| 291 | - | PlayerTextDrawShow(playerid,Textdraw9[playerid]); |
| 291 | + | |
| 292 | - | PlayerTextDrawShow(playerid,Textdraw10[playerid]); |
| 292 | + | |
| 293 | - | PlayerTextDrawShow(playerid,Textdraw11[playerid]); |
| 293 | + | |
| 294 | - | PlayerTextDrawShow(playerid,Textdraw12[playerid]); |
| 294 | + | |
| 295 | - | PlayerTextDrawShow(playerid,Textdraw13[playerid]); |
| 295 | + | |
| 296 | - | PlayerTextDrawShow(playerid,Textdraw14[playerid]); |
| 296 | + | |
| 297 | - | PlayerTextDrawShow(playerid,Textdraw15[playerid]); |
| 297 | + | |
| 298 | - | PlayerTextDrawShow(playerid,Textdraw16[playerid]); |
| 298 | + | |
| 299 | - | PlayerTextDrawShow(playerid,Textdraw17[playerid]); |
| 299 | + | |
| 300 | - | PlayerTextDrawShow(playerid,Textdraw18[playerid]); |
| 300 | + | |
| 301 | - | PlayerTextDrawShow(playerid,Textdraw19[playerid]); |
| 301 | + | |
| 302 | public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) | |
| 303 | {
| |
| 304 | if(newkeys & KEY_FIRE) | |
| 305 | {
| |
| 306 | if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 564) | |
| 307 | {
| |
| 308 | new Float:Pos[4]; | |
| 309 | GetXYInFrontOfPlayer(playerid, Float:Pos[0], Float:Pos[1], Float:Pos[2], Float:Pos[3], 20.0); | |
| 310 | CreateExplosion(Float:Pos[0], Float:Pos[1], Float:Pos[2], 11, 4.0); | |
| 311 | return 1; | |
| 312 | } | |
| 313 | if(Bombe[playerid] == 2) | |
| 314 | {
| |
| 315 | CreateExplosion(GetPVarFloat(playerid,"X"), GetPVarFloat(playerid,"Y"), GetPVarFloat(playerid,"Z"), 6, 20.0); | |
| 316 | SendClientMessage(playerid,GRUEN,"Bombe hochgejagt."); | |
| 317 | Bombe[playerid] = 0; | |
| 318 | } | |
| 319 | } | |
| 320 | if(newkeys & KEY_CROUCH) | |
| 321 | {
| |
| 322 | if(Bombe[playerid] == 1) | |
| 323 | - | KillTimer(Timer3[playerid]); |
| 323 | + | |
| 324 | - | KillTimer(Timer4[playerid]); |
| 324 | + | |
| 325 | - | KillTimer(Timer5[playerid]); |
| 325 | + | |
| 326 | SetPVarFloat(playerid,"X",Float:Pos[0]); | |
| 327 | SetPVarFloat(playerid,"Y",Float:Pos[1]); | |
| 328 | SetPVarFloat(playerid,"Z",Float:Pos[2]); | |
| 329 | SendClientMessage(playerid,GRUEN,"Mit der linken Maustaste jagst du die Bombe hoch!"); | |
| 330 | Bombe[playerid] = 2; | |
| 331 | return 1; | |
| 332 | } | |
| 333 | } | |
| 334 | return 1; | |
| 335 | } | |
| 336 | public OnPlayerModelSelectionEx(playerid, response, extraid, modelid) | |
| 337 | {
| |
| 338 | if(extraid == Skin_Liste) | |
| 339 | {
| |
| 340 | if(response==0) | |
| 341 | {
| |
| 342 | new skin[21]; | |
| 343 | skin[0] = 4; | |
| 344 | skin[1] = 5; | |
| 345 | skin[2] = 19; | |
| 346 | skin[3] = 20; | |
| 347 | skin[4] = 21; | |
| 348 | skin[5] = 101; | |
| 349 | skin[6] = 102; | |
| 350 | skin[7] = 103; | |
| 351 | skin[8] = 105; | |
| 352 | skin[9] = 106; | |
| 353 | skin[10] = 127; | |
| 354 | skin[11] = 149; | |
| 355 | skin[12] = 163; | |
| 356 | skin[13] = 164; | |
| 357 | skin[14] = 165; | |
| 358 | skin[15] = 166; | |
| 359 | skin[16] = 187; | |
| 360 | skin[17] = 269; | |
| 361 | skin[18] = 270; | |
| 362 | skin[19] = 271; | |
| 363 | skin[20] = 293; | |
| 364 | ShowModelSelectionMenuEx(playerid, skin, 21, "Skinauswahl", Skin_Liste); | |
| 365 | FreezePlayer(playerid,1); | |
| 366 | } | |
| 367 | if(response==1) | |
| 368 | {
| |
| 369 | new string[128],Float:health,Float:armor; | |
| 370 | GetPlayerHealth(playerid,health); | |
| 371 | GetPlayerArmour(playerid,armor); | |
| 372 | format(string,sizeof(string),"%d/100\n{FF0019}%d/100", floatround(armor),floatround(health));
| |
| 373 | HA[playerid] = Create3DTextLabel(string,0xFFFFFFFF, 0, 0, 0, 20.0,1, 1); | |
| 374 | Attach3DTextLabelToPlayer(HA[playerid], playerid, 0, 0, 0); | |
| 375 | new rSpawn; | |
| 376 | rSpawn = random(sizeof(Spawns)); | |
| 377 | SetPlayerPos(playerid,Spawns[rSpawn][0],Spawns[rSpawn][1],Spawns[rSpawn][2]); | |
| 378 | SetPlayerFacingAngle(playerid,Spawns[rSpawn][3]); | |
| 379 | PlayerTextDrawShow(playerid,Textdraw[playerid][0]); | |
| 380 | PlayerTextDrawShow(playerid,Textdraw[playerid][1]); | |
| 381 | PlayerTextDrawShow(playerid,Textdraw[playerid][2]); | |
| 382 | PlayerTextDrawShow(playerid,Textdraw[playerid][3]); | |
| 383 | PlayerTextDrawShow(playerid,Textdraw[playerid][4]); | |
| 384 | PlayerTextDrawShow(playerid,Textdraw[playerid][5]); | |
| 385 | SetPlayerInterior(playerid,10); | |
| 386 | SetCameraBehindPlayer(playerid); | |
| 387 | SetPlayerColor(playerid, WEISS); | |
| 388 | SetPlayerHealth(playerid, 100.0); | |
| 389 | SetPlayerArmour(playerid, 100.0); | |
| 390 | SetPlayerVirtualWorld(playerid,0); | |
| 391 | FreezePlayer(playerid,1); | |
| 392 | Skinchange[playerid] = 0; | |
| 393 | gungame[playerid] = 0; | |
| 394 | Drohne[playerid] = 0; | |
| 395 | Bombe[playerid] = 0; | |
| 396 | KwoD[playerid] = 0; | |
| 397 | SendClientMessage(playerid, GRUEN, "Skin erfolgreich ausgewählt!"); | |
| 398 | Skin[playerid] = modelid; | |
| 399 | SetPlayerSkin(playerid, modelid); | |
| 400 | FreezePlayer(playerid,1); | |
| 401 | } | |
| 402 | } | |
| 403 | return 1; | |
| 404 | } | |
| 405 | public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) | |
| 406 | {
| |
| 407 | if(_:playertextid != INVALID_TEXT_DRAW) | |
| 408 | {
| |
| 409 | - | PlayerTextDrawShow(playerid,Textdraw0[playerid]); |
| 409 | + | if(playertextid == Textdraw[playerid][17]) |
| 410 | - | PlayerTextDrawShow(playerid,Textdraw1[playerid]); |
| 410 | + | |
| 411 | - | PlayerTextDrawShow(playerid,Textdraw2[playerid]); |
| 411 | + | |
| 412 | - | PlayerTextDrawShow(playerid,Textdraw3[playerid]); |
| 412 | + | |
| 413 | - | PlayerTextDrawShow(playerid,Textdraw4[playerid]); |
| 413 | + | |
| 414 | - | PlayerTextDrawShow(playerid,Textdraw5[playerid]); |
| 414 | + | |
| 415 | if(dini_Exists(Spielerdatei)) | |
| 416 | {
| |
| 417 | ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Dein Account wurde gefunden, bitte gebe dein Passwort ein!","Login","Abbrechen"); | |
| 418 | } | |
| 419 | else | |
| 420 | {
| |
| 421 | ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Bitte gebe dein gewünschtes Passwort ein:","Register","Abbrechen"); | |
| 422 | } | |
| 423 | } | |
| 424 | if(playertextid == Textdraw[playerid][18]) | |
| 425 | {
| |
| 426 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][0]); | |
| 427 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][1]); | |
| 428 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][2]); | |
| 429 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][3]); | |
| 430 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][4]); | |
| 431 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][5]); | |
| 432 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][6]); | |
| 433 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][7]); | |
| 434 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][8]); | |
| 435 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][9]); | |
| 436 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][10]); | |
| 437 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][11]); | |
| 438 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][12]); | |
| 439 | - | if(playertextid == Textdraw17[playerid]) |
| 439 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][13]); |
| 440 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][14]); | |
| 441 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][15]); | |
| 442 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][16]); | |
| 443 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][17]); | |
| 444 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][18]); | |
| 445 | PlayerTextDrawDestroy(playerid, Textdraw[playerid][19]); | |
| 446 | SetTimerEx("KICK",200,false,"i",playerid);
| |
| 447 | } | |
| 448 | } | |
| 449 | return 1; | |
| 450 | } | |
| 451 | public OnPlayerSpawn(playerid) | |
| 452 | {
| |
| 453 | Timer[playerid] = SetTimerEx("Check",500,true,"i",playerid);
| |
| 454 | - | if(playertextid == Textdraw18[playerid]) |
| 454 | + | |
| 455 | {
| |
| 456 | - | PlayerTextDrawHide(playerid,Textdraw0[playerid]); |
| 456 | + | |
| 457 | - | PlayerTextDrawHide(playerid,Textdraw1[playerid]); |
| 457 | + | |
| 458 | - | PlayerTextDrawHide(playerid,Textdraw2[playerid]); |
| 458 | + | |
| 459 | - | PlayerTextDrawHide(playerid,Textdraw3[playerid]); |
| 459 | + | |
| 460 | - | PlayerTextDrawHide(playerid,Textdraw4[playerid]); |
| 460 | + | |
| 461 | - | PlayerTextDrawHide(playerid,Textdraw5[playerid]); |
| 461 | + | |
| 462 | - | PlayerTextDrawHide(playerid,Textdraw6[playerid]); |
| 462 | + | |
| 463 | - | PlayerTextDrawHide(playerid,Textdraw7[playerid]); |
| 463 | + | |
| 464 | - | PlayerTextDrawHide(playerid,Textdraw8[playerid]); |
| 464 | + | |
| 465 | - | PlayerTextDrawHide(playerid,Textdraw9[playerid]); |
| 465 | + | |
| 466 | - | PlayerTextDrawHide(playerid,Textdraw10[playerid]); |
| 466 | + | |
| 467 | - | PlayerTextDrawHide(playerid,Textdraw11[playerid]); |
| 467 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][6]); |
| 468 | - | PlayerTextDrawHide(playerid,Textdraw12[playerid]); |
| 468 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][7]); |
| 469 | - | PlayerTextDrawHide(playerid,Textdraw13[playerid]); |
| 469 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][8]); |
| 470 | - | PlayerTextDrawHide(playerid,Textdraw14[playerid]); |
| 470 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][9]); |
| 471 | - | PlayerTextDrawHide(playerid,Textdraw15[playerid]); |
| 471 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][10]); |
| 472 | - | PlayerTextDrawHide(playerid,Textdraw16[playerid]); |
| 472 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][11]); |
| 473 | - | PlayerTextDrawHide(playerid,Textdraw17[playerid]); |
| 473 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][12]); |
| 474 | - | PlayerTextDrawHide(playerid,Textdraw18[playerid]); |
| 474 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][13]); |
| 475 | - | PlayerTextDrawHide(playerid,Textdraw19[playerid]); |
| 475 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][14]); |
| 476 | - | PlayerTextDrawDestroy(playerid, Textdraw0[playerid]); |
| 476 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][15]); |
| 477 | - | PlayerTextDrawDestroy(playerid, Textdraw1[playerid]); |
| 477 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][16]); |
| 478 | - | PlayerTextDrawDestroy(playerid, Textdraw2[playerid]); |
| 478 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][17]); |
| 479 | - | PlayerTextDrawDestroy(playerid, Textdraw3[playerid]); |
| 479 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][18]); |
| 480 | - | PlayerTextDrawDestroy(playerid, Textdraw4[playerid]); |
| 480 | + | PlayerTextDrawDestroy(playerid, Textdraw[playerid][19]); |
| 481 | - | PlayerTextDrawDestroy(playerid, Textdraw5[playerid]); |
| 481 | + | SetPlayerVirtualWorld(playerid,random(100)*37); |
| 482 | - | PlayerTextDrawDestroy(playerid, Textdraw6[playerid]); |
| 482 | + | |
| 483 | - | PlayerTextDrawDestroy(playerid, Textdraw7[playerid]); |
| 483 | + | |
| 484 | - | PlayerTextDrawDestroy(playerid, Textdraw8[playerid]); |
| 484 | + | |
| 485 | - | PlayerTextDrawDestroy(playerid, Textdraw9[playerid]); |
| 485 | + | |
| 486 | - | PlayerTextDrawDestroy(playerid, Textdraw10[playerid]); |
| 486 | + | |
| 487 | - | PlayerTextDrawDestroy(playerid, Textdraw11[playerid]); |
| 487 | + | |
| 488 | - | PlayerTextDrawDestroy(playerid, Textdraw12[playerid]); |
| 488 | + | |
| 489 | - | PlayerTextDrawDestroy(playerid, Textdraw13[playerid]); |
| 489 | + | |
| 490 | - | PlayerTextDrawDestroy(playerid, Textdraw14[playerid]); |
| 490 | + | |
| 491 | - | PlayerTextDrawDestroy(playerid, Textdraw15[playerid]); |
| 491 | + | |
| 492 | - | PlayerTextDrawDestroy(playerid, Textdraw16[playerid]); |
| 492 | + | |
| 493 | - | PlayerTextDrawDestroy(playerid, Textdraw17[playerid]); |
| 493 | + | |
| 494 | - | PlayerTextDrawDestroy(playerid, Textdraw18[playerid]); |
| 494 | + | |
| 495 | - | PlayerTextDrawDestroy(playerid, Textdraw19[playerid]); |
| 495 | + | |
| 496 | skin[6] = 102; | |
| 497 | skin[7] = 103; | |
| 498 | skin[8] = 105; | |
| 499 | skin[9] = 106; | |
| 500 | skin[10] = 127; | |
| 501 | skin[11] = 149; | |
| 502 | skin[12] = 163; | |
| 503 | - | Timer[playerid] = SetTimerEx("Check",1000,true,"i",playerid);
|
| 503 | + | |
| 504 | - | Timer5[playerid] = SetTimerEx("CheckHA",100,true,"i",playerid);
|
| 504 | + | |
| 505 | skin[15] = 166; | |
| 506 | skin[16] = 187; | |
| 507 | skin[17] = 269; | |
| 508 | skin[18] = 270; | |
| 509 | skin[19] = 271; | |
| 510 | skin[20] = 293; | |
| 511 | ShowModelSelectionMenuEx(playerid, skin, 21, "Skinauswahl", Skin_Liste); | |
| 512 | } | |
| 513 | else | |
| 514 | {
| |
| 515 | new rSpawn; | |
| 516 | rSpawn = random(sizeof(Spawns)); | |
| 517 | SetPlayerPos(playerid,Spawns[rSpawn][0],Spawns[rSpawn][1],Spawns[rSpawn][2]); | |
| 518 | - | PlayerTextDrawHide(playerid,Textdraw6[playerid]); |
| 518 | + | |
| 519 | - | PlayerTextDrawHide(playerid,Textdraw7[playerid]); |
| 519 | + | |
| 520 | - | PlayerTextDrawHide(playerid,Textdraw8[playerid]); |
| 520 | + | |
| 521 | - | PlayerTextDrawHide(playerid,Textdraw9[playerid]); |
| 521 | + | |
| 522 | - | PlayerTextDrawHide(playerid,Textdraw10[playerid]); |
| 522 | + | |
| 523 | - | PlayerTextDrawHide(playerid,Textdraw11[playerid]); |
| 523 | + | |
| 524 | - | PlayerTextDrawHide(playerid,Textdraw12[playerid]); |
| 524 | + | |
| 525 | - | PlayerTextDrawHide(playerid,Textdraw13[playerid]); |
| 525 | + | |
| 526 | - | PlayerTextDrawHide(playerid,Textdraw14[playerid]); |
| 526 | + | |
| 527 | - | PlayerTextDrawHide(playerid,Textdraw15[playerid]); |
| 527 | + | |
| 528 | - | PlayerTextDrawHide(playerid,Textdraw16[playerid]); |
| 528 | + | |
| 529 | - | PlayerTextDrawHide(playerid,Textdraw17[playerid]); |
| 529 | + | |
| 530 | - | PlayerTextDrawHide(playerid,Textdraw18[playerid]); |
| 530 | + | |
| 531 | - | PlayerTextDrawHide(playerid,Textdraw19[playerid]); |
| 531 | + | |
| 532 | - | PlayerTextDrawDestroy(playerid, Textdraw6[playerid]); |
| 532 | + | |
| 533 | - | PlayerTextDrawDestroy(playerid, Textdraw7[playerid]); |
| 533 | + | |
| 534 | - | PlayerTextDrawDestroy(playerid, Textdraw8[playerid]); |
| 534 | + | |
| 535 | - | PlayerTextDrawDestroy(playerid, Textdraw9[playerid]); |
| 535 | + | |
| 536 | - | PlayerTextDrawDestroy(playerid, Textdraw10[playerid]); |
| 536 | + | |
| 537 | - | PlayerTextDrawDestroy(playerid, Textdraw11[playerid]); |
| 537 | + | |
| 538 | - | PlayerTextDrawDestroy(playerid, Textdraw12[playerid]); |
| 538 | + | |
| 539 | - | PlayerTextDrawDestroy(playerid, Textdraw13[playerid]); |
| 539 | + | |
| 540 | - | PlayerTextDrawDestroy(playerid, Textdraw14[playerid]); |
| 540 | + | |
| 541 | - | PlayerTextDrawDestroy(playerid, Textdraw15[playerid]); |
| 541 | + | |
| 542 | - | PlayerTextDrawDestroy(playerid, Textdraw16[playerid]); |
| 542 | + | |
| 543 | - | PlayerTextDrawDestroy(playerid, Textdraw17[playerid]); |
| 543 | + | |
| 544 | - | PlayerTextDrawDestroy(playerid, Textdraw18[playerid]); |
| 544 | + | |
| 545 | - | PlayerTextDrawDestroy(playerid, Textdraw19[playerid]); |
| 545 | + | |
| 546 | - | SetPlayerVirtualWorld(playerid,GetOnlinePlayers()*37); |
| 546 | + | |
| 547 | GivePlayerWeapon(playerid,24,1337); | |
| 548 | } | |
| 549 | case 3: | |
| 550 | {
| |
| 551 | ResetPlayerWeapons(playerid); | |
| 552 | GivePlayerWeapon(playerid,17,2); | |
| 553 | GivePlayerWeapon(playerid,4,1); | |
| 554 | GivePlayerWeapon(playerid,28,1337); | |
| 555 | } | |
| 556 | case 4: | |
| 557 | {
| |
| 558 | ResetPlayerWeapons(playerid); | |
| 559 | GivePlayerWeapon(playerid,17,2); | |
| 560 | GivePlayerWeapon(playerid,4,1); | |
| 561 | GivePlayerWeapon(playerid,32,1337); | |
| 562 | } | |
| 563 | case 5: | |
| 564 | {
| |
| 565 | ResetPlayerWeapons(playerid); | |
| 566 | GivePlayerWeapon(playerid,17,2); | |
| 567 | GivePlayerWeapon(playerid,4,1); | |
| 568 | GivePlayerWeapon(playerid,30,1337); | |
| 569 | } | |
| 570 | case 6: | |
| 571 | {
| |
| 572 | ResetPlayerWeapons(playerid); | |
| 573 | GivePlayerWeapon(playerid,17,2); | |
| 574 | GivePlayerWeapon(playerid,4,1); | |
| 575 | GivePlayerWeapon(playerid,25,1337); | |
| 576 | } | |
| 577 | case 7: | |
| 578 | {
| |
| 579 | ResetPlayerWeapons(playerid); | |
| 580 | GivePlayerWeapon(playerid,17,2); | |
| 581 | GivePlayerWeapon(playerid,4,1); | |
| 582 | GivePlayerWeapon(playerid,27,1337); | |
| 583 | } | |
| 584 | case 8: | |
| 585 | {
| |
| 586 | ResetPlayerWeapons(playerid); | |
| 587 | GivePlayerWeapon(playerid,17,2); | |
| 588 | GivePlayerWeapon(playerid,4,1); | |
| 589 | GivePlayerWeapon(playerid,31,1337); | |
| 590 | } | |
| 591 | case 9: | |
| 592 | {
| |
| 593 | ResetPlayerWeapons(playerid); | |
| 594 | GivePlayerWeapon(playerid,17,2); | |
| 595 | GivePlayerWeapon(playerid,4,1); | |
| 596 | GivePlayerWeapon(playerid,33,1337); | |
| 597 | } | |
| 598 | case 10: | |
| 599 | {
| |
| 600 | ResetPlayerWeapons(playerid); | |
| 601 | GivePlayerWeapon(playerid,17,2); | |
| 602 | GivePlayerWeapon(playerid,4,1); | |
| 603 | GivePlayerWeapon(playerid,34,1337); | |
| 604 | } | |
| 605 | case 11: | |
| 606 | {
| |
| 607 | ResetPlayerWeapons(playerid); | |
| 608 | GivePlayerWeapon(playerid,17,2); | |
| 609 | GivePlayerWeapon(playerid,4,1); | |
| 610 | GivePlayerWeapon(playerid,35,1337); | |
| 611 | } | |
| 612 | case 12: | |
| 613 | {
| |
| 614 | ResetPlayerWeapons(playerid); | |
| 615 | GivePlayerWeapon(playerid,17,2); | |
| 616 | GivePlayerWeapon(playerid,4,1); | |
| 617 | GivePlayerWeapon(playerid,36,1337); | |
| 618 | } | |
| 619 | case 13: | |
| 620 | {
| |
| 621 | ResetPlayerWeapons(playerid); | |
| 622 | GivePlayerWeapon(playerid,17,2); | |
| 623 | GivePlayerWeapon(playerid,4,1); | |
| 624 | GivePlayerWeapon(playerid,37,1337); | |
| 625 | } | |
| 626 | case 14: | |
| 627 | {
| |
| 628 | ResetPlayerWeapons(playerid); | |
| 629 | GivePlayerWeapon(playerid,17,2); | |
| 630 | GivePlayerWeapon(playerid,4,1); | |
| 631 | GivePlayerWeapon(playerid,38,1337); | |
| 632 | } | |
| 633 | case 15: | |
| 634 | {
| |
| 635 | ResetPlayerWeapons(playerid); | |
| 636 | GivePlayerWeapon(playerid,17,2); | |
| 637 | GivePlayerWeapon(playerid,9,1); | |
| 638 | } | |
| 639 | case 16: | |
| 640 | {
| |
| 641 | ResetPlayerWeapons(playerid); | |
| 642 | gungame[playerid] = 0; | |
| 643 | GivePlayerWeapon(playerid,17,2); | |
| 644 | GivePlayerWeapon(playerid,4,1); | |
| 645 | GivePlayerWeapon(playerid,22,1337); | |
| 646 | } | |
| 647 | } | |
| 648 | return 1; | |
| 649 | } | |
| 650 | ||
| 651 | public OnPlayerDeath(playerid, killerid, reason) | |
| 652 | {
| |
| 653 | new string[512],string2[512]; | |
| 654 | if(killerid != INVALID_PLAYER_ID) | |
| 655 | {
| |
| 656 | Kills[killerid]++; | |
| 657 | Tode[playerid]++; | |
| 658 | KwoD[playerid] = 0; | |
| 659 | KwoD[killerid]++; | |
| 660 | if(GetPlayerWeapon(killerid) == 4) | |
| 661 | {
| |
| 662 | if(gungame[playerid] != 0) return gungame[playerid]--; | |
| 663 | GivePlayerMoney(killerid,999); | |
| 664 | format(string,sizeof string,"Du wurdest von %s gemessert und bekommst daher die vorherige Waffe!",SpielerName(killerid)); | |
| 665 | SendClientMessage(playerid,ROT,string); | |
| 666 | format(string2,sizeof string2,"Jsckpot! Du hast %s gemessert und bekommst daher 999$!",SpielerName(playerid)); | |
| 667 | SendClientMessage(killerid,GRUEN,string2); | |
| 668 | } | |
| 669 | else | |
| 670 | {
| |
| 671 | format(string,sizeof string,"Du wurdest von %s getötet!",SpielerName(killerid)); | |
| 672 | SendClientMessage(playerid,ROT,string); | |
| 673 | format(string2,sizeof string2,"Du hast %s getötet!",SpielerName(playerid)); | |
| 674 | SendClientMessage(killerid,GRUEN,string2); | |
| 675 | gungame[killerid]++; | |
| 676 | switch(gungame[killerid]) | |
| 677 | {
| |
| 678 | case 0: | |
| 679 | {
| |
| 680 | ResetPlayerWeapons(killerid); | |
| 681 | GivePlayerWeapon(killerid,17,2); | |
| 682 | GivePlayerWeapon(killerid,4,1); | |
| 683 | GivePlayerWeapon(killerid,22,1337); | |
| 684 | GivePlayerMoney(killerid,100); | |
| 685 | } | |
| 686 | case 1: | |
| 687 | {
| |
| 688 | ResetPlayerWeapons(killerid); | |
| 689 | GivePlayerWeapon(killerid,17,2); | |
| 690 | GivePlayerWeapon(killerid,4,1); | |
| 691 | GivePlayerWeapon(killerid,23,1337); | |
| 692 | GivePlayerMoney(killerid,100); | |
| 693 | } | |
| 694 | case 2: | |
| 695 | {
| |
| 696 | ResetPlayerWeapons(killerid); | |
| 697 | GivePlayerWeapon(killerid,17,2); | |
| 698 | GivePlayerWeapon(killerid,4,1); | |
| 699 | GivePlayerWeapon(killerid,24,1337); | |
| 700 | GivePlayerMoney(killerid,200); | |
| 701 | } | |
| 702 | case 3: | |
| 703 | {
| |
| 704 | ResetPlayerWeapons(killerid); | |
| 705 | GivePlayerWeapon(killerid,17,2); | |
| 706 | GivePlayerWeapon(killerid,4,1); | |
| 707 | GivePlayerWeapon(killerid,28,1337); | |
| 708 | GivePlayerMoney(killerid,300); | |
| 709 | } | |
| 710 | case 4: | |
| 711 | {
| |
| 712 | ResetPlayerWeapons(killerid); | |
| 713 | GivePlayerWeapon(killerid,17,2); | |
| 714 | GivePlayerWeapon(killerid,4,1); | |
| 715 | GivePlayerWeapon(killerid,32,1337); | |
| 716 | GivePlayerMoney(killerid,400); | |
| 717 | } | |
| 718 | case 5: | |
| 719 | - | Kills[killerid]++; |
| 719 | + | |
| 720 | - | Tode[playerid]++; |
| 720 | + | ResetPlayerWeapons(killerid); |
| 721 | - | KwoD[playerid] = 0; |
| 721 | + | GivePlayerWeapon(killerid,17,2); |
| 722 | - | KwoD[killerid]++; |
| 722 | + | GivePlayerWeapon(killerid,4,1); |
| 723 | - | if(killerid == INVALID_PLAYER_ID) |
| 723 | + | GivePlayerWeapon(killerid,30,1337); |
| 724 | GivePlayerMoney(killerid,500); | |
| 725 | - | SendClientMessage(playerid, ROT, "NOOB! Du sollst dich nicht selber killen."); |
| 725 | + | |
| 726 | - | Tode[playerid]++; |
| 726 | + | case 6: |
| 727 | - | KwoD[playerid] = 0; |
| 727 | + | |
| 728 | ResetPlayerWeapons(killerid); | |
| 729 | GivePlayerWeapon(killerid,17,2); | |
| 730 | - | else if(GetPlayerWeapon(killerid) == 4) |
| 730 | + | GivePlayerWeapon(killerid,4,1); |
| 731 | GivePlayerWeapon(killerid,25,1337); | |
| 732 | - | if(gungame[playerid] != 0) return gungame[playerid]--; |
| 732 | + | GivePlayerMoney(killerid,600); |
| 733 | - | GivePlayerMoney(killerid,999); |
| 733 | + | |
| 734 | - | format(string,sizeof string,"Du wurdest von %s gemessert und bekommst daher die vorherige Waffe!",SpielerName(killerid)); |
| 734 | + | case 7: |
| 735 | - | SendClientMessage(playerid,ROT,string); |
| 735 | + | |
| 736 | - | format(string2,sizeof string2,"Jsckpot! Du hast %s gemessert und bekommst daher 999$!",SpielerName(playerid)); |
| 736 | + | ResetPlayerWeapons(killerid); |
| 737 | - | SendClientMessage(killerid,GRUEN,string2); |
| 737 | + | GivePlayerWeapon(killerid,17,2); |
| 738 | GivePlayerWeapon(killerid,4,1); | |
| 739 | GivePlayerWeapon(killerid,27,1337); | |
| 740 | GivePlayerMoney(killerid,700); | |
| 741 | - | format(string,sizeof string,"Du wurdest von %s getötet!",SpielerName(killerid)); |
| 741 | + | |
| 742 | - | SendClientMessage(playerid,ROT,string); |
| 742 | + | case 8: |
| 743 | - | format(string2,sizeof string2,"Du hast %s getötet!",SpielerName(playerid)); |
| 743 | + | |
| 744 | - | SendClientMessage(killerid,GRUEN,string2); |
| 744 | + | ResetPlayerWeapons(killerid); |
| 745 | - | gungame[killerid]++; |
| 745 | + | GivePlayerWeapon(killerid,17,2); |
| 746 | - | switch(gungame[killerid]) |
| 746 | + | GivePlayerWeapon(killerid,4,1); |
| 747 | GivePlayerWeapon(killerid,31,1337); | |
| 748 | - | case 0: |
| 748 | + | GivePlayerMoney(killerid,800); |
| 749 | } | |
| 750 | - | ResetPlayerWeapons(killerid); |
| 750 | + | case 9: |
| 751 | - | GivePlayerWeapon(killerid,17,2); |
| 751 | + | |
| 752 | - | GivePlayerWeapon(killerid,4,1); |
| 752 | + | ResetPlayerWeapons(killerid); |
| 753 | - | GivePlayerWeapon(killerid,22,1337); |
| 753 | + | GivePlayerWeapon(killerid,17,2); |
| 754 | - | GivePlayerMoney(killerid,100); |
| 754 | + | GivePlayerWeapon(killerid,4,1); |
| 755 | GivePlayerWeapon(killerid,33,1337); | |
| 756 | - | case 1: |
| 756 | + | GivePlayerMoney(killerid,900); |
| 757 | } | |
| 758 | - | ResetPlayerWeapons(killerid); |
| 758 | + | case 10: |
| 759 | - | GivePlayerWeapon(killerid,17,2); |
| 759 | + | |
| 760 | - | GivePlayerWeapon(killerid,4,1); |
| 760 | + | ResetPlayerWeapons(killerid); |
| 761 | - | GivePlayerWeapon(killerid,23,1337); |
| 761 | + | GivePlayerWeapon(killerid,17,2); |
| 762 | - | GivePlayerMoney(killerid,100); |
| 762 | + | GivePlayerWeapon(killerid,4,1); |
| 763 | GivePlayerWeapon(killerid,34,1337); | |
| 764 | - | case 2: |
| 764 | + | GivePlayerMoney(killerid,1000); |
| 765 | } | |
| 766 | - | ResetPlayerWeapons(killerid); |
| 766 | + | case 11: |
| 767 | - | GivePlayerWeapon(killerid,17,2); |
| 767 | + | |
| 768 | - | GivePlayerWeapon(killerid,4,1); |
| 768 | + | ResetPlayerWeapons(killerid); |
| 769 | - | GivePlayerWeapon(killerid,24,1337); |
| 769 | + | GivePlayerWeapon(killerid,17,2); |
| 770 | - | GivePlayerMoney(killerid,200); |
| 770 | + | GivePlayerWeapon(killerid,4,1); |
| 771 | GivePlayerWeapon(killerid,35,1337); | |
| 772 | - | case 3: |
| 772 | + | GivePlayerMoney(killerid,1100); |
| 773 | } | |
| 774 | - | ResetPlayerWeapons(killerid); |
| 774 | + | case 12: |
| 775 | - | GivePlayerWeapon(killerid,17,2); |
| 775 | + | |
| 776 | - | GivePlayerWeapon(killerid,4,1); |
| 776 | + | ResetPlayerWeapons(killerid); |
| 777 | - | GivePlayerWeapon(killerid,28,1337); |
| 777 | + | GivePlayerWeapon(killerid,17,2); |
| 778 | - | GivePlayerMoney(killerid,300); |
| 778 | + | GivePlayerWeapon(killerid,4,1); |
| 779 | GivePlayerWeapon(killerid,36,1337); | |
| 780 | - | case 4: |
| 780 | + | GivePlayerMoney(killerid,1200); |
| 781 | } | |
| 782 | - | ResetPlayerWeapons(killerid); |
| 782 | + | case 13: |
| 783 | - | GivePlayerWeapon(killerid,17,2); |
| 783 | + | |
| 784 | - | GivePlayerWeapon(killerid,4,1); |
| 784 | + | ResetPlayerWeapons(killerid); |
| 785 | - | GivePlayerWeapon(killerid,32,1337); |
| 785 | + | GivePlayerWeapon(killerid,17,2); |
| 786 | - | GivePlayerMoney(killerid,400); |
| 786 | + | GivePlayerWeapon(killerid,4,1); |
| 787 | GivePlayerWeapon(killerid,37,1337); | |
| 788 | - | case 5: |
| 788 | + | GivePlayerMoney(killerid,1300); |
| 789 | } | |
| 790 | - | ResetPlayerWeapons(killerid); |
| 790 | + | case 14: |
| 791 | - | GivePlayerWeapon(killerid,17,2); |
| 791 | + | |
| 792 | - | GivePlayerWeapon(killerid,4,1); |
| 792 | + | ResetPlayerWeapons(killerid); |
| 793 | - | GivePlayerWeapon(killerid,30,1337); |
| 793 | + | GivePlayerWeapon(killerid,17,2); |
| 794 | - | GivePlayerMoney(killerid,500); |
| 794 | + | GivePlayerWeapon(killerid,38,1337); |
| 795 | GivePlayerMoney(killerid,1400); | |
| 796 | - | case 6: |
| 796 | + | |
| 797 | case 15: | |
| 798 | - | ResetPlayerWeapons(killerid); |
| 798 | + | |
| 799 | - | GivePlayerWeapon(killerid,17,2); |
| 799 | + | ResetPlayerWeapons(killerid); |
| 800 | - | GivePlayerWeapon(killerid,4,1); |
| 800 | + | GivePlayerWeapon(killerid,17,2); |
| 801 | - | GivePlayerWeapon(killerid,25,1337); |
| 801 | + | GivePlayerWeapon(killerid,9,1); |
| 802 | - | GivePlayerMoney(killerid,600); |
| 802 | + | GivePlayerMoney(killerid,1500); |
| 803 | } | |
| 804 | - | case 7: |
| 804 | + | case 16: |
| 805 | {
| |
| 806 | - | ResetPlayerWeapons(killerid); |
| 806 | + | new string0[64]; |
| 807 | - | GivePlayerWeapon(killerid,17,2); |
| 807 | + | for(new i = 0; i < MAX_PLAYERS; i++) |
| 808 | - | GivePlayerWeapon(killerid,4,1); |
| 808 | + | {
|
| 809 | - | GivePlayerWeapon(killerid,27,1337); |
| 809 | + | ResetPlayerWeapons(i); |
| 810 | - | GivePlayerMoney(killerid,700); |
| 810 | + | GivePlayerWeapon(i,17,2); |
| 811 | GivePlayerWeapon(i,4,1); | |
| 812 | - | case 8: |
| 812 | + | GivePlayerWeapon(i,22,1337); |
| 813 | gungame[i] = 0; | |
| 814 | - | ResetPlayerWeapons(killerid); |
| 814 | + | |
| 815 | - | GivePlayerWeapon(killerid,17,2); |
| 815 | + | format(string0,sizeof(string0),"%s hat gewonnen. Neue Runde startet...",SpielerName(killerid)); |
| 816 | - | GivePlayerWeapon(killerid,4,1); |
| 816 | + | GameTextForAll(string0, 3000, 3); |
| 817 | - | GivePlayerWeapon(killerid,31,1337); |
| 817 | + | SetPVarInt(killerid,"Level", GetPVarInt(killerid,"Level")+1); |
| 818 | - | GivePlayerMoney(killerid,800); |
| 818 | + | GivePlayerMoney(killerid,GetPVarInt(killerid,"Level")*2000); |
| 819 | } | |
| 820 | - | case 9: |
| 820 | + | |
| 821 | switch(KwoD[killerid]) | |
| 822 | - | ResetPlayerWeapons(killerid); |
| 822 | + | |
| 823 | - | GivePlayerWeapon(killerid,17,2); |
| 823 | + | case 3: |
| 824 | - | GivePlayerWeapon(killerid,4,1); |
| 824 | + | |
| 825 | - | GivePlayerWeapon(killerid,33,1337); |
| 825 | + | ShowPlayerDialog(killerid, DIALOG_Drohne, DIALOG_STYLE_MSGBOX, "Drohne","Du hast 3 Personen ohne zu sterben getötet, möchtest du dafür eine Drohne?","Ja","Nein"); |
| 826 | - | GivePlayerMoney(killerid,900); |
| 826 | + | |
| 827 | case 5: | |
| 828 | - | case 10: |
| 828 | + | |
| 829 | ShowPlayerDialog(killerid, DIALOG_Panzer, DIALOG_STYLE_MSGBOX, "Panzer","Du hast 5 Personen ohne zu sterben getötet, möchtest du dafür einen Panzer?","Ja","Nein"); | |
| 830 | - | ResetPlayerWeapons(killerid); |
| 830 | + | |
| 831 | - | GivePlayerWeapon(killerid,17,2); |
| 831 | + | case 7: |
| 832 | - | GivePlayerWeapon(killerid,4,1); |
| 832 | + | |
| 833 | - | GivePlayerWeapon(killerid,34,1337); |
| 833 | + | ShowPlayerDialog(killerid, DIALOG_Bomben, DIALOG_STYLE_MSGBOX, "Bombe","Du hast 7 Personen ohne zu sterben getötet, möchtest du dafür eine Bombe legen?","Ja","Nein"); |
| 834 | - | GivePlayerMoney(killerid,1000); |
| 834 | + | |
| 835 | case 9: | |
| 836 | - | case 11: |
| 836 | + | |
| 837 | GivePlayerMoney(killerid,100000); | |
| 838 | - | ResetPlayerWeapons(killerid); |
| 838 | + | |
| 839 | - | GivePlayerWeapon(killerid,17,2); |
| 839 | + | |
| 840 | - | GivePlayerWeapon(killerid,4,1); |
| 840 | + | |
| 841 | - | GivePlayerWeapon(killerid,35,1337); |
| 841 | + | |
| 842 | - | GivePlayerMoney(killerid,1100); |
| 842 | + | |
| 843 | } | |
| 844 | - | case 12: |
| 844 | + | |
| 845 | public OnVehicleSpawn(vehicleid) | |
| 846 | - | ResetPlayerWeapons(killerid); |
| 846 | + | |
| 847 | - | GivePlayerWeapon(killerid,17,2); |
| 847 | + | |
| 848 | - | GivePlayerWeapon(killerid,4,1); |
| 848 | + | |
| 849 | - | GivePlayerWeapon(killerid,36,1337); |
| 849 | + | |
| 850 | - | GivePlayerMoney(killerid,1200); |
| 850 | + | |
| 851 | {
| |
| 852 | - | case 13: |
| 852 | + | |
| 853 | DestroyVehicle(vehicleid); | |
| 854 | - | ResetPlayerWeapons(killerid); |
| 854 | + | |
| 855 | - | GivePlayerWeapon(killerid,17,2); |
| 855 | + | |
| 856 | - | GivePlayerWeapon(killerid,4,1); |
| 856 | + | |
| 857 | - | GivePlayerWeapon(killerid,37,1337); |
| 857 | + | |
| 858 | - | GivePlayerMoney(killerid,1300); |
| 858 | + | |
| 859 | return 1; | |
| 860 | - | case 14: |
| 860 | + | |
| 861 | ||
| 862 | - | ResetPlayerWeapons(killerid); |
| 862 | + | |
| 863 | - | GivePlayerWeapon(killerid,17,2); |
| 863 | + | |
| 864 | - | GivePlayerWeapon(killerid,38,1337); |
| 864 | + | |
| 865 | - | GivePlayerMoney(killerid,1400); |
| 865 | + | |
| 866 | ShowPlayerDialog(playerid, DIALOG_MusikAuswahl, DIALOG_STYLE_LIST, "-=d-MUSIK-b=-","Awolnation - Sail\nFat Joe ft. Lil Wayne - Make it rain\nThe Deans List - Dear Professor Dubstep Remix\nMusikPlayer beenden","Abspielen","Abbrechen"); | |
| 867 | - | case 15: |
| 867 | + | |
| 868 | } | |
| 869 | - | ResetPlayerWeapons(killerid); |
| 869 | + | |
| 870 | - | GivePlayerWeapon(killerid,17,2); |
| 870 | + | |
| 871 | - | GivePlayerWeapon(killerid,9,1); |
| 871 | + | |
| 872 | - | GivePlayerMoney(killerid,1500); |
| 872 | + | |
| 873 | for(new i = 0; i < MAX_PLAYERS;i++) | |
| 874 | - | case 16: |
| 874 | + | |
| 875 | SpielerSpeichern(i); | |
| 876 | - | new string0[64]; |
| 876 | + | |
| 877 | - | for(new i = 0; i < MAX_PLAYERS; i++) |
| 877 | + | |
| 878 | - | {
|
| 878 | + | |
| 879 | - | ResetPlayerWeapons(i); |
| 879 | + | |
| 880 | - | GivePlayerWeapon(i,17,2); |
| 880 | + | |
| 881 | - | GivePlayerWeapon(i,4,1); |
| 881 | + | |
| 882 | - | GivePlayerWeapon(i,22,1337); |
| 882 | + | |
| 883 | - | gungame[i] = 0; |
| 883 | + | |
| 884 | if(IsSpielerTeamler(playerid,2)) | |
| 885 | - | format(string0,sizeof(string0),"%s hat gewonnen. Neue Runde startet...",SpielerName(killerid)); |
| 885 | + | |
| 886 | - | GameTextForAll(string0, 3000, 3); |
| 886 | + | |
| 887 | - | SetPVarInt(killerid,"Level", GetPVarInt(killerid,"Level")+1); |
| 887 | + | |
| 888 | - | GivePlayerMoney(killerid,GetPVarInt(killerid,"Level")*2000); |
| 888 | + | |
| 889 | } | |
| 890 | SendClientMessage(playerid,ROT,"Alle Ereignisse wurden gespeichert!"); | |
| 891 | - | switch(KwoD[killerid]) |
| 891 | + | |
| 892 | return 1; | |
| 893 | - | case 3: |
| 893 | + | |
| 894 | return 0; | |
| 895 | - | ShowPlayerDialog(killerid, DIALOG_Drohne, DIALOG_STYLE_MSGBOX, "Drohne","Du hast 3 Personen ohne zu sterben getötet, möchtest du dafür eine Drohne?","Ja","Nein"); |
| 895 | + | |
| 896 | ||
| 897 | - | case 5: |
| 897 | + | |
| 898 | {
| |
| 899 | - | ShowPlayerDialog(killerid, DIALOG_Panzer, DIALOG_STYLE_MSGBOX, "Panzer","Du hast 5 Personen ohne zu sterben getötet, möchtest du dafür einen Panzer?","Ja","Nein"); |
| 899 | + | |
| 900 | } | |
| 901 | - | case 7: |
| 901 | + | |
| 902 | public OnPlayerExitVehicle(playerid, vehicleid) | |
| 903 | - | ShowPlayerDialog(killerid, DIALOG_Bomben, DIALOG_STYLE_MSGBOX, "Bombe","Du hast 7 Personen ohne zu sterben getötet, möchtest du dafür eine Bombe legen?","Ja","Nein"); |
| 903 | + | |
| 904 | return 1; | |
| 905 | - | case 9: |
| 905 | + | |
| 906 | ||
| 907 | - | GivePlayerMoney(killerid,100000); |
| 907 | + | |
| 908 | {
| |
| 909 | return 1; | |
| 910 | } | |
| 911 | ||
| 912 | public OnPlayerEnterCheckpoint(playerid) | |
| 913 | {
| |
| 914 | return 1; | |
| 915 | } | |
| 916 | ||
| 917 | public OnPlayerLeaveCheckpoint(playerid) | |
| 918 | {
| |
| 919 | return 1; | |
| 920 | } | |
| 921 | ||
| 922 | public OnPlayerEnterRaceCheckpoint(playerid) | |
| 923 | {
| |
| 924 | return 1; | |
| 925 | } | |
| 926 | ||
| 927 | public OnPlayerLeaveRaceCheckpoint(playerid) | |
| 928 | {
| |
| 929 | return 1; | |
| 930 | } | |
| 931 | ||
| 932 | public OnRconCommand(cmd[]) | |
| 933 | {
| |
| 934 | return 1; | |
| 935 | } | |
| 936 | ||
| 937 | public OnPlayerRequestSpawn(playerid) | |
| 938 | {
| |
| 939 | return 1; | |
| 940 | } | |
| 941 | ||
| 942 | public OnObjectMoved(objectid) | |
| 943 | {
| |
| 944 | return 1; | |
| 945 | } | |
| 946 | ||
| 947 | public OnPlayerObjectMoved(playerid, objectid) | |
| 948 | {
| |
| 949 | return 1; | |
| 950 | } | |
| 951 | - | if(strcmp("/firstperson", cmdtext, true, 10) == 0)
|
| 951 | + | |
| 952 | public OnPlayerPickUpPickup(playerid, pickupid) | |
| 953 | - | new firstperson[MAX_PLAYERS]; |
| 953 | + | |
| 954 | - | firstperson[playerid] = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); |
| 954 | + | |
| 955 | - | AttachObjectToPlayer(firstperson[playerid],playerid, 0.0, 0.12, 0.7, 0.0, 0.0, 0.0); |
| 955 | + | |
| 956 | - | AttachCameraToObject(playerid, firstperson[playerid]); |
| 956 | + | |
| 957 | - | SendClientMessage(playerid,-1,"{FFFFFF}Benutze {009BFF}/exitfirstperson {FFFFFF}um wieder die Camera zu wechseln.");
|
| 957 | + | |
| 958 | new Waffentext[20],string[128]; | |
| 959 | new Waffe = gungame[playerid]+1; | |
| 960 | if(Waffe == 0) (Waffentext= "9mm"); | |
| 961 | else if(Waffe == 1) (Waffentext= "9mm SD"); | |
| 962 | else if(Waffe == 2) (Waffentext="Desert Eagle"); | |
| 963 | else if(Waffe == 3) (Waffentext="Uzi"); | |
| 964 | else if(Waffe == 4) (Waffentext="Tec-9"); | |
| 965 | else if(Waffe == 5) (Waffentext="AK-47"); | |
| 966 | else if(Waffe == 6) (Waffentext="Shotgun"); | |
| 967 | else if(Waffe == 7) (Waffentext="Combat Shotgun"); | |
| 968 | else if(Waffe == 8) (Waffentext="M4"); | |
| 969 | else if(Waffe == 9) (Waffentext="Country Rifle"); | |
| 970 | else if(Waffe == 10) (Waffentext="Sniper"); | |
| 971 | else if(Waffe == 11) (Waffentext="RPG"); | |
| 972 | else if(Waffe == 12) (Waffentext="HS Rocket"); | |
| 973 | else if(Waffe == 13) (Waffentext="Flammenwerfer"); | |
| 974 | else if(Waffe == 14) (Waffentext="Minigun"); | |
| 975 | else if(Waffe == 15) (Waffentext="Kettensäge"); | |
| 976 | format(string,128,"Möchtest du die nächste Waffe: %s für 7000§ kaufen?",Waffentext); | |
| 977 | ShowPlayerDialog(playerid, DIALOG_WAFFE, DIALOG_STYLE_MSGBOX, "Waffenspiel",string,"Kaufen","Abbrechen"); | |
| 978 | } | |
| 979 | } | |
| 980 | return 1; | |
| 981 | } | |
| 982 | ||
| 983 | public OnVehicleMod(playerid, vehicleid, componentid) | |
| 984 | {
| |
| 985 | return 1; | |
| 986 | } | |
| 987 | ||
| 988 | public OnVehiclePaintjob(playerid, vehicleid, paintjobid) | |
| 989 | {
| |
| 990 | return 1; | |
| 991 | } | |
| 992 | ||
| 993 | public OnVehicleRespray(playerid, vehicleid, color1, color2) | |
| 994 | {
| |
| 995 | return 1; | |
| 996 | } | |
| 997 | ||
| 998 | public OnPlayerSelectedMenuRow(playerid, row) | |
| 999 | {
| |
| 1000 | return 1; | |
| 1001 | } | |
| 1002 | ||
| 1003 | public OnPlayerExitedMenu(playerid) | |
| 1004 | {
| |
| 1005 | return 1; | |
| 1006 | } | |
| 1007 | ||
| 1008 | public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) | |
| 1009 | {
| |
| 1010 | return 1; | |
| 1011 | } | |
| 1012 | ||
| 1013 | public OnRconLoginAttempt(ip[], password[], success) | |
| 1014 | {
| |
| 1015 | return 1; | |
| 1016 | } | |
| 1017 | ||
| 1018 | public OnPlayerUpdate(playerid) | |
| 1019 | {
| |
| 1020 | return 1; | |
| 1021 | } | |
| 1022 | ||
| 1023 | public OnPlayerStreamIn(playerid, forplayerid) | |
| 1024 | {
| |
| 1025 | return 1; | |
| 1026 | } | |
| 1027 | ||
| 1028 | public OnPlayerStreamOut(playerid, forplayerid) | |
| 1029 | {
| |
| 1030 | return 1; | |
| 1031 | } | |
| 1032 | ||
| 1033 | public OnVehicleStreamIn(vehicleid, forplayerid) | |
| 1034 | {
| |
| 1035 | return 1; | |
| 1036 | } | |
| 1037 | ||
| 1038 | public OnVehicleStreamOut(vehicleid, forplayerid) | |
| 1039 | {
| |
| 1040 | return 1; | |
| 1041 | } | |
| 1042 | public OnPlayerClickPlayer(playerid, clickedplayerid, source) | |
| 1043 | {
| |
| 1044 | new string[512],Waffentext[20]; | |
| 1045 | new Waffe = gungame[clickedplayerid]; | |
| 1046 | if(Waffe == 0) (Waffentext= "9mm"); | |
| 1047 | else if(Waffe == 1) (Waffentext= "9mm Schalldämpfer"); | |
| 1048 | else if(Waffe == 2) (Waffentext="Desert Eagle"); | |
| 1049 | else if(Waffe == 3) (Waffentext="Uzi"); | |
| 1050 | else if(Waffe == 4) (Waffentext="Tec-9"); | |
| 1051 | else if(Waffe == 5) (Waffentext="AK-47"); | |
| 1052 | else if(Waffe == 6) (Waffentext="Shotgun"); | |
| 1053 | else if(Waffe == 7) (Waffentext="Sawnoff Shotgun"); | |
| 1054 | else if(Waffe == 8) (Waffentext="M4"); | |
| 1055 | else if(Waffe == 9) (Waffentext="Country Rifle"); | |
| 1056 | else if(Waffe == 10) (Waffentext="Sniper"); | |
| 1057 | else if(Waffe == 11) (Waffentext="RPG"); | |
| 1058 | else if(Waffe == 12) (Waffentext="HS Rocket"); | |
| 1059 | else if(Waffe == 13) (Waffentext="Flammenwerfer"); | |
| 1060 | else if(Waffe == 14) (Waffentext="Minigun"); | |
| 1061 | else if(Waffe == 15) (Waffentext="Kettensäge"); | |
| 1062 | format(string,sizeof(string),"%s hat %d Kills, %d Tode, ist Level %d und hat zurzeit die Waffe: %s!",SpielerName(clickedplayerid),Kills[clickedplayerid],Tode[clickedplayerid],GetPVarInt(playerid,"Level"),Waffentext); | |
| 1063 | SendClientMessage(playerid,ROT,string); | |
| 1064 | return 1; | |
| 1065 | } | |
| 1066 | ||
| 1067 | public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) | |
| 1068 | {
| |
| 1069 | if(dialogid == DIALOG_MusikAuswahl) | |
| 1070 | {
| |
| 1071 | if(response) | |
| 1072 | {
| |
| 1073 | if(listitem == 0) | |
| 1074 | {
| |
| 1075 | StopAudioStreamForPlayer(playerid); | |
| 1076 | PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/s/9ary9cifll2chas/Awolnation%20-%20Sail%20-%20Unlimited%20Gravity%20Remix.mp3?token_hash=AAGtgfJ4CnTzUY6fmQSTsv9aZ1ddX40MtEo-dpD6_HI26Q&dl=1"); | |
| 1077 | } | |
| 1078 | if(listitem == 1) | |
| 1079 | {
| |
| 1080 | StopAudioStreamForPlayer(playerid); | |
| 1081 | PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/s/gggrncnbbsk8lwj/Fat%20Joe%20feat%20Lil%20Wayne%20-%20%20Make%20it%20Rain.mp3?token_hash=AAHtc2uQHuOftQPBjYI917_4CJe11nNZU9taXXpanQqOOQ&dl=1"); | |
| 1082 | } | |
| 1083 | if(listitem == 2) | |
| 1084 | {
| |
| 1085 | StopAudioStreamForPlayer(playerid); | |
| 1086 | PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/s/mgl6nn4f58mrgut/The%20Deans%20List%20-%20Dear%20Professor%20Dubstep%20Remix.mp3?token_hash=AAE4OE87N7dEstLkLh-bsaS1FgFJMijyA54-9mVqJURHQQ&dl=1"); | |
| 1087 | } | |
| 1088 | if(listitem == 3) | |
| 1089 | {
| |
| 1090 | StopAudioStreamForPlayer(playerid); | |
| 1091 | SendClientMessage(playerid, GRUEN,"Du hast die Musik gestoppt."); | |
| 1092 | } | |
| 1093 | } | |
| 1094 | } | |
| 1095 | if(dialogid == DIALOG_WAFFE) | |
| 1096 | {
| |
| 1097 | if(response==1) | |
| 1098 | {
| |
| 1099 | if(GetPlayerMoney(playerid) >= 7000) | |
| 1100 | {
| |
| 1101 | GivePlayerMoney(playerid,-7000); | |
| 1102 | gungame[playerid]++; | |
| 1103 | switch(gungame[playerid]) | |
| 1104 | {
| |
| 1105 | case 0: | |
| 1106 | {
| |
| 1107 | ResetPlayerWeapons(playerid); | |
| 1108 | GivePlayerWeapon(playerid,17,2); | |
| 1109 | GivePlayerWeapon(playerid,4,1); | |
| 1110 | GivePlayerWeapon(playerid,22,1337); | |
| 1111 | } | |
| 1112 | case 1: | |
| 1113 | {
| |
| 1114 | ResetPlayerWeapons(playerid); | |
| 1115 | GivePlayerWeapon(playerid,17,2); | |
| 1116 | GivePlayerWeapon(playerid,4,1); | |
| 1117 | GivePlayerWeapon(playerid,23,1337); | |
| 1118 | } | |
| 1119 | case 2: | |
| 1120 | {
| |
| 1121 | ResetPlayerWeapons(playerid); | |
| 1122 | GivePlayerWeapon(playerid,17,2); | |
| 1123 | GivePlayerWeapon(playerid,4,1); | |
| 1124 | GivePlayerWeapon(playerid,24,1337); | |
| 1125 | } | |
| 1126 | case 3: | |
| 1127 | {
| |
| 1128 | ResetPlayerWeapons(playerid); | |
| 1129 | GivePlayerWeapon(playerid,17,2); | |
| 1130 | GivePlayerWeapon(playerid,4,1); | |
| 1131 | GivePlayerWeapon(playerid,28,1337); | |
| 1132 | } | |
| 1133 | case 4: | |
| 1134 | {
| |
| 1135 | ResetPlayerWeapons(playerid); | |
| 1136 | GivePlayerWeapon(playerid,17,2); | |
| 1137 | GivePlayerWeapon(playerid,4,1); | |
| 1138 | GivePlayerWeapon(playerid,32,1337); | |
| 1139 | } | |
| 1140 | case 5: | |
| 1141 | {
| |
| 1142 | ResetPlayerWeapons(playerid); | |
| 1143 | GivePlayerWeapon(playerid,17,2); | |
| 1144 | GivePlayerWeapon(playerid,4,1); | |
| 1145 | GivePlayerWeapon(playerid,30,1337); | |
| 1146 | } | |
| 1147 | case 6: | |
| 1148 | {
| |
| 1149 | ResetPlayerWeapons(playerid); | |
| 1150 | GivePlayerWeapon(playerid,17,2); | |
| 1151 | GivePlayerWeapon(playerid,4,1); | |
| 1152 | GivePlayerWeapon(playerid,25,1337); | |
| 1153 | } | |
| 1154 | case 7: | |
| 1155 | {
| |
| 1156 | ResetPlayerWeapons(playerid); | |
| 1157 | GivePlayerWeapon(playerid,17,2); | |
| 1158 | GivePlayerWeapon(playerid,4,1); | |
| 1159 | GivePlayerWeapon(playerid,27,1337); | |
| 1160 | } | |
| 1161 | case 8: | |
| 1162 | {
| |
| 1163 | ResetPlayerWeapons(playerid); | |
| 1164 | GivePlayerWeapon(playerid,17,2); | |
| 1165 | GivePlayerWeapon(playerid,4,1); | |
| 1166 | GivePlayerWeapon(playerid,31,1337); | |
| 1167 | } | |
| 1168 | case 9: | |
| 1169 | - | SendClientMessage(playerid, GRUEN,"Du hast die Musik gestoppt"); |
| 1169 | + | |
| 1170 | ResetPlayerWeapons(playerid); | |
| 1171 | GivePlayerWeapon(playerid,17,2); | |
| 1172 | GivePlayerWeapon(playerid,4,1); | |
| 1173 | GivePlayerWeapon(playerid,33,1337); | |
| 1174 | } | |
| 1175 | case 10: | |
| 1176 | {
| |
| 1177 | ResetPlayerWeapons(playerid); | |
| 1178 | GivePlayerWeapon(playerid,17,2); | |
| 1179 | GivePlayerWeapon(playerid,4,1); | |
| 1180 | GivePlayerWeapon(playerid,34,1337); | |
| 1181 | } | |
| 1182 | case 11: | |
| 1183 | {
| |
| 1184 | ResetPlayerWeapons(playerid); | |
| 1185 | GivePlayerWeapon(playerid,17,2); | |
| 1186 | GivePlayerWeapon(playerid,4,1); | |
| 1187 | GivePlayerWeapon(playerid,35,1337); | |
| 1188 | } | |
| 1189 | case 12: | |
| 1190 | {
| |
| 1191 | ResetPlayerWeapons(playerid); | |
| 1192 | GivePlayerWeapon(playerid,17,2); | |
| 1193 | GivePlayerWeapon(playerid,4,1); | |
| 1194 | GivePlayerWeapon(playerid,36,1337); | |
| 1195 | } | |
| 1196 | case 13: | |
| 1197 | {
| |
| 1198 | ResetPlayerWeapons(playerid); | |
| 1199 | GivePlayerWeapon(playerid,17,2); | |
| 1200 | GivePlayerWeapon(playerid,4,1); | |
| 1201 | GivePlayerWeapon(playerid,37,1337); | |
| 1202 | } | |
| 1203 | case 14: | |
| 1204 | {
| |
| 1205 | ResetPlayerWeapons(playerid); | |
| 1206 | GivePlayerWeapon(playerid,17,2); | |
| 1207 | GivePlayerWeapon(playerid,4,1); | |
| 1208 | GivePlayerWeapon(playerid,38,1337); | |
| 1209 | } | |
| 1210 | case 15: | |
| 1211 | {
| |
| 1212 | ResetPlayerWeapons(playerid); | |
| 1213 | GivePlayerWeapon(playerid,17,2); | |
| 1214 | GivePlayerWeapon(playerid,9,1); | |
| 1215 | } | |
| 1216 | case 16: | |
| 1217 | {
| |
| 1218 | ResetPlayerWeapons(playerid); | |
| 1219 | gungame[playerid] = 0; | |
| 1220 | SetPVarInt(playerid,"Level", GetPVarInt(playerid,"Level")+1); | |
| 1221 | GivePlayerWeapon(playerid,17,2); | |
| 1222 | GivePlayerWeapon(playerid,4,1); | |
| 1223 | GivePlayerWeapon(playerid,22,1337); | |
| 1224 | } | |
| 1225 | } | |
| 1226 | } | |
| 1227 | else return SendClientMessage(playerid,ROT,"Du hast keine 7000$!"); | |
| 1228 | } | |
| 1229 | } | |
| 1230 | if(dialogid == DIALOG_LOGIN) | |
| 1231 | {
| |
| 1232 | if(response==0) | |
| 1233 | {
| |
| 1234 | SelectTextDraw(playerid, ROT); | |
| 1235 | return 1; | |
| 1236 | } | |
| 1237 | if(response==1) | |
| 1238 | {
| |
| 1239 | if(!strlen(inputtext)) | |
| 1240 | {
| |
| 1241 | SendClientMessage(playerid,BLAU,"Das Passwort war nicht lang genug!"); | |
| 1242 | ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Dein Account wurde gefunden, bitte gebe dein Passwort ein!","Login","Abbrechen"); | |
| 1243 | return 1; | |
| 1244 | } | |
| 1245 | else | |
| 1246 | {
| |
| 1247 | SetTimerEx("Spawn",10,false,"i",playerid);
| |
| 1248 | Login(playerid,inputtext); | |
| 1249 | return 1; | |
| 1250 | } | |
| 1251 | } | |
| 1252 | } | |
| 1253 | if(dialogid == DIALOG_REGISTER) | |
| 1254 | {
| |
| 1255 | if(response==0) | |
| 1256 | {
| |
| 1257 | SelectTextDraw(playerid, ROT); | |
| 1258 | return 1; | |
| 1259 | } | |
| 1260 | if(response==1) | |
| 1261 | {
| |
| 1262 | if(!strlen(inputtext)) | |
| 1263 | {
| |
| 1264 | SendClientMessage(playerid,BLAU,"Das Passwort war nicht lang genug!"); | |
| 1265 | ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Bitte gebe dein gewünschtes Passwort ein:","Register","Abbrechen"); | |
| 1266 | return 1; | |
| 1267 | } | |
| 1268 | else | |
| 1269 | {
| |
| 1270 | SetTimerEx("Spawn",10,false,"i",playerid);
| |
| 1271 | Register(playerid,inputtext); | |
| 1272 | GivePlayerMoney(playerid,2500); | |
| 1273 | return 1; | |
| 1274 | } | |
| 1275 | } | |
| 1276 | } | |
| 1277 | if(dialogid == DIALOG_Panzer) | |
| 1278 | {
| |
| 1279 | if(response==1) | |
| 1280 | {
| |
| 1281 | new Float:Pos[4]; | |
| 1282 | GetPlayerPos(playerid,Float:Pos[0],Float:Pos[1],Float:Pos[2]); | |
| 1283 | GetPlayerFacingAngle(playerid,Float:Pos[3]); | |
| 1284 | Panzer[playerid] = CreateVehicle(564,Float:Pos[0],Float:Pos[1],Float:Pos[2],Float:Pos[3],1,1,2000); | |
| 1285 | LinkVehicleToInterior(Panzer[playerid],GetPlayerInterior(playerid)); | |
| 1286 | SetVehicleVirtualWorld(Panzer[playerid],GetPlayerVirtualWorld(playerid)); | |
| 1287 | PutPlayerInVehicle(playerid,Panzer[playerid],0); | |
| 1288 | Timer2[playerid] = SetTimerEx("PanzerTimer",60000,false,"i",playerid);
| |
| 1289 | SendClientMessage(playerid,GRUEN,"Panzer wird für eine Minute erstellt... Vorsicht: Der Panzer kann auch zerstört werden!"); | |
| 1290 | } | |
| 1291 | } | |
| 1292 | if(dialogid == DIALOG_Drohne) | |
| 1293 | {
| |
| 1294 | if(response==1) | |
| 1295 | {
| |
| 1296 | for(new i = 0; i < MAX_PLAYERS; i++) | |
| 1297 | {
| |
| 1298 | SetPlayerMarkerForPlayer(playerid, i, ROT); | |
| 1299 | ShowPlayerNameTagForPlayer(playerid, i, true); | |
| 1300 | } | |
| 1301 | Drohne[playerid] = 1; | |
| 1302 | Timer1[playerid] = SetTimerEx("DrohnenTimer",30000,false,"i",playerid);
| |
| 1303 | SendClientMessage(playerid,GRUEN,"Alle Spieler werden dir für 30 Sekunden angezeigt..."); | |
| 1304 | } | |
| 1305 | } | |
| 1306 | if(dialogid == DIALOG_Bomben) | |
| 1307 | {
| |
| 1308 | if(response==1) | |
| 1309 | {
| |
| 1310 | if(Bombe[playerid] == 0) | |
| 1311 | {
| |
| 1312 | SendClientMessage(playerid,GRUEN,"Mit C kannst du die Bombe platzieren, und mit der linken Maustaste hochjagen."); | |
| 1313 | Bombe[playerid] = 1; | |
| 1314 | } | |
| 1315 | } | |
| 1316 | } | |
| 1317 | return 1; | |
| 1318 | } | |
| 1319 | ocmd:pn(playerid,params[]) | |
| 1320 | {
| |
| 1321 | new string[2056],pID; | |
| 1322 | if(sscanf(params,"us",pID,string))return SendClientMessage(playerid, ROT,"Verwendung: /pn [Spieler] [Text]"); | |
| 1323 | if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,ROT,"Der angegebene Spieler ist nicht online!"); | |
| 1324 | new text[2056]; | |
| 1325 | - | Timer3[playerid] = SetTimerEx("Spawn",10,false,"i",playerid);
|
| 1325 | + | |
| 1326 | SendClientMessage(pID,ROT,text); | |
| 1327 | format(text,sizeof(text),"{FF0019}Nachricht: {FFFFFF}%s |{FF0019}an Empfänger: {FFFFFF}%s {FF0019}gesendet!",string,SpielerName(pID));
| |
| 1328 | SendClientMessage(playerid,ROT,text); | |
| 1329 | GivePlayerMoney(playerid, -2); | |
| 1330 | return 1; | |
| 1331 | } | |
| 1332 | ocmd:healall(playerid) | |
| 1333 | {
| |
| 1334 | if(IsSpielerTeamler(playerid,2)) | |
| 1335 | {
| |
| 1336 | for(new i = 0; i < MAX_PLAYERS; i++) | |
| 1337 | {
| |
| 1338 | if(IsPlayerConnected(i)) | |
| 1339 | {
| |
| 1340 | SetPlayerHealth(i, 100); | |
| 1341 | SetPlayerArmour(i, 100); | |
| 1342 | } | |
| 1343 | } | |
| 1344 | SendClientMessageToAll(GRUEN,"Alle Spieler wurden geheilt!"); | |
| 1345 | } | |
| 1346 | return 1; | |
| 1347 | } | |
| 1348 | - | Timer3[playerid] = SetTimerEx("Spawn",10,false,"i",playerid);
|
| 1348 | + | |
| 1349 | {
| |
| 1350 | new pID, pIP[16], string[256]; | |
| 1351 | if(!IsSpielerTeamler(playerid,1)) return SendClientMessage(playerid,ROT,"Du bist kein Admin!"); | |
| 1352 | if(sscanf(params,"u",pID))return SendClientMessage(playerid,ROT,"Verwendung: /ipcheck [Spieler]"); | |
| 1353 | GetPlayerIp(pID,pIP,sizeof(pIP)); | |
| 1354 | format(string,sizeof(string),"%s hat die IP: %s",SpielerName(pID),pIP); | |
| 1355 | SendClientMessage(playerid, ROT, string); | |
| 1356 | return 1; | |
| 1357 | } | |
| 1358 | ocmd:givecash(playerid,params[]) | |
| 1359 | {
| |
| 1360 | new pID,string[128],string2[128],geld; | |
| 1361 | if(sscanf(params,"ui",pID,geld))return SendClientMessage(playerid,ROT,"Verwendung: /givecash [Spieler] [Geld]"); | |
| 1362 | if(!IsPlayerConnected(pID))return SendClientMessage(playerid,ROT,"Der angegebene Spieler ist nicht online!"); | |
| 1363 | if(geld <1 || geld > 99999999)return SendClientMessage(playerid,ROT,"Ungültige Zahl!"); | |
| 1364 | if(!IsPlayerInRangeOfPlayer(playerid, pID, 2.0))return SendClientMessage(playerid,GELB,"In deiner Nähe ist kein Spieler!"); | |
| 1365 | if(GetPlayerMoney(playerid) >= geld) | |
| 1366 | {
| |
| 1367 | if(pID == playerid) | |
| 1368 | {
| |
| 1369 | SendClientMessage(playerid,ROT,"Sie können sich nicht selber Geld geben!"); | |
| 1370 | } | |
| 1371 | else if(pID != INVALID_PLAYER_ID) | |
| 1372 | {
| |
| 1373 | format(string,128,"Sie haben %s %i Dollar gegeben",SpielerName(pID),geld); | |
| 1374 | format(string2,128,"Der Spieler %s hat ihnen %i Dollar gegeben",SpielerName(playerid),geld); | |
| 1375 | SendClientMessage(playerid,GELB,string); | |
| 1376 | SendClientMessage(pID,GELB,string2); | |
| 1377 | GivePlayerMoney(playerid,-geld); | |
| 1378 | GivePlayerMoney(pID,geld); | |
| 1379 | } | |
| 1380 | else | |
| 1381 | {
| |
| 1382 | SendClientMessage(playerid,ROT,"Dieser Spieler ist Ungültig!"); | |
| 1383 | } | |
| 1384 | } | |
| 1385 | else | |
| 1386 | {
| |
| 1387 | SendClientMessage(playerid,ROT,"Sie besitzen nicht genug Geld!"); | |
| 1388 | } | |
| 1389 | return 1; | |
| 1390 | } | |
| 1391 | ocmd:setadmin(playerid,params[]) | |
| 1392 | {
| |
| 1393 | new pID,rang,string[128]; | |
| 1394 | if(!IsPlayerConnected(pID))return SendClientMessage(playerid,ROT,"Der angegebene Spieler ist nicht online!"); | |
| 1395 | if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,ROT,"Du musst RCON ADMIN sein!"); | |
| 1396 | if(sscanf(params,"ui",pID,rang))return SendClientMessage(playerid,ROT,"Verwendung: /setadmin [Name] [Adminlevel]"); | |
| 1397 | if( rang <0 || rang > 2)return SendClientMessage(playerid,ROT,"Ungültige ID!"); | |
| 1398 | {
| |
| 1399 | if(rang == 0) | |
| 1400 | {
| |
| 1401 | format(string,sizeof(string),"[SERVER] %s wurde von %s aus dem Team entfernt!",SpielerName(pID),SpielerName(playerid)); | |
| 1402 | SendClientMessageToAll(ROT,string); | |
| 1403 | } | |
| 1404 | if(rang == 1) | |
| 1405 | {
| |
| 1406 | format(string,sizeof(string),"[SERVER] %s wurde von %s ins Team mit dem Rang Supporter gesetzt!",SpielerName(pID),SpielerName(playerid)); | |
| 1407 | SendClientMessageToAll(ROT,string); | |
| 1408 | } | |
| 1409 | if(rang == 2) | |
| 1410 | {
| |
| 1411 | format(string,sizeof(string),"[SERVER] %s wurde von %s ins Team mit dem Rang Admin gesetzt!",SpielerName(pID),SpielerName(playerid)); | |
| 1412 | SendClientMessageToAll(ROT,string); | |
| 1413 | } | |
| 1414 | SetPVarInt(pID,"Rang",rang); | |
| 1415 | SpielerSpeichern(pID); | |
| 1416 | return 1; | |
| 1417 | } | |
| 1418 | } | |
| 1419 | ocmd:ban(playerid,params[]) | |
| 1420 | {
| |
| 1421 | new pID, str[512]; | |
| 1422 | if(!IsSpielerTeamler(playerid,2)) return SendClientMessage(playerid,ROT,"Dein Adminlevel reicht nicht aus!"); | |
| 1423 | if(sscanf(params,"uz",pID,str))return SendClientMessage(playerid,ROT,"Verwendung: /ban [ID/Name] [Grund]"); | |
| 1424 | if(!IsPlayerConnected(pID))return SendClientMessage(playerid,ROT,"Dieser Spieler ist nicht online!"); | |
| 1425 | {
| |
| 1426 | - | ocmd:drohne(playerid) |
| 1426 | + | |
| 1427 | format(str2,sizeof(str2),"[SERVER] %s wurde von %s gebannt! Grund: %s",SpielerName(pID),SpielerName(playerid),str[0] ? str : "/"); | |
| 1428 | SendClientMessageToAll(ROT,str2); | |
| 1429 | SetPVarInt(pID,"Banned",1); | |
| 1430 | - | KwoD[playerid] = 3; |
| 1430 | + | |
| 1431 | - | Drohne[playerid] = 1; |
| 1431 | + | |
| 1432 | - | ShowPlayerDialog(playerid, DIALOG_Drohne, DIALOG_STYLE_MSGBOX, "Drohne","Du hast 3 Personen ohne zu sterben getötet, möchtest du dafür eine Drohne?","Ja","Nein"); |
| 1432 | + | |
| 1433 | return 1; | |
| 1434 | } | |
| 1435 | ocmd:unban(playerid,params[]) | |
| 1436 | - | ocmd:bombe(playerid) |
| 1436 | + | |
| 1437 | new Spielerdatei[128], pID[MAX_PLAYER_NAME], string[128]; | |
| 1438 | if(sscanf(params,"s[32]",pID)) return SendClientMessage(playerid,ROT,"Verwendung: /unban [Name]"); | |
| 1439 | format(Spielerdatei,sizeof(Spielerdatei),"/AccountsGunGame/%s.ini",pID); | |
| 1440 | - | KwoD[playerid] = 7; |
| 1440 | + | |
| 1441 | - | ShowPlayerDialog(playerid, DIALOG_Bomben, DIALOG_STYLE_MSGBOX, "Bombe","Du hast 7 Personen ohne zu sterben getötet, möchtest du dafür eine Bombe legen?","Ja","Nein"); |
| 1441 | + | |
| 1442 | format(string,sizeof(string),"[SERVER] %s hat %s entbannt!",SpielerName(playerid), pID); | |
| 1443 | SendClientMessageToAll(ROT,string); | |
| 1444 | dini_IntSet(Spielerdatei,"Banned",0); | |
| 1445 | - | ocmd:panzer(playerid) |
| 1445 | + | |
| 1446 | } | |
| 1447 | ocmd:changepw(playerid,params[]) | |
| 1448 | {
| |
| 1449 | - | KwoD[playerid] = 5; |
| 1449 | + | |
| 1450 | - | ShowPlayerDialog(playerid, DIALOG_Panzer, DIALOG_STYLE_MSGBOX, "Panzer","Du hast 5 Personen ohne zu sterben getötet, möchtest du dafür einen Panzer?","Ja","Nein"); |
| 1450 | + | |
| 1451 | if(sscanf(params,"s[32]",password)) return SendClientMessage(playerid,ROT,"Verwendung: /unban [Name]"); | |
| 1452 | format(Spielerdatei,sizeof(Spielerdatei),"/AccountsGunGame/%s.ini",name); | |
| 1453 | if(!dini_Exists(Spielerdatei)) return SendClientMessage(playerid,ROT,"Spieleraccount wurde nicht gefunden!"); | |
| 1454 | format(string,sizeof(string),"Du hast dein Passwort in '%s' geändert!",password); | |
| 1455 | SendClientMessage(playerid,GRUEN,string); | |
| 1456 | dini_Set(Spielerdatei,"Passwort",password); | |
| 1457 | return 1; | |
| 1458 | } | |
| 1459 | ocmd:kick(playerid,params[]) | |
| 1460 | {
| |
| 1461 | new pID, str[1024]; | |
| 1462 | if(!IsSpielerTeamler(playerid,1)) return SendClientMessage(playerid,ROT,"Dein Adminlevel reicht nicht aus!"); | |
| 1463 | if(sscanf(params,"uz",pID,str))return SendClientMessage(playerid,ROT,"Verwendung: /kick [ID/Name] [Grund]"); | |
| 1464 | if(!IsPlayerConnected(pID))return SendClientMessage(playerid,ROT,"Dieser Spieler ist nicht online!"); | |
| 1465 | {
| |
| 1466 | new str2[128]; | |
| 1467 | format(str2,sizeof(str2),"%s wurde gekickt! Grund: %s",SpielerName(pID),str[0] ? str : "/"); | |
| 1468 | SendClientMessageToAll(ROT,str2); | |
| 1469 | SetTimerEx("KICK",500,false,"i",pID);
| |
| 1470 | } | |
| 1471 | return 1; | |
| 1472 | } | |
| 1473 | ocmd:freeze(playerid,params[]) | |
| 1474 | {
| |
| 1475 | new pID, str[128]; | |
| 1476 | if(!IsSpielerTeamler(playerid,1)) return SendClientMessage(playerid,ROT,"Dein Adminlevel reicht nicht aus!"); | |
| 1477 | if(sscanf(params,"uz",pID,str))return SendClientMessage(playerid,ROT,"Verwendung: /freeze [ID/Name] [Grund]"); | |
| 1478 | if(!IsPlayerConnected(pID))return SendClientMessage(playerid,ROT,"Dieser Spieler ist nicht online!"); | |
| 1479 | {
| |
| 1480 | new str2[128], str3[128]; | |
| 1481 | format(str2,sizeof(str2),"Du wurdest gefreezet Grund: %s", str[0] ? str : "Kein Grund"); | |
| 1482 | format(str3,sizeof(str3),"Du hast den jeweiligen Spieler gefreezet! Grund: %s", str[0] ? str : "/"); | |
| 1483 | SendClientMessage(pID,ROT,str2); | |
| 1484 | SendClientMessage(playerid,ROT,str3); | |
| 1485 | TogglePlayerControllable(pID,0); | |
| 1486 | } | |
| 1487 | return 1; | |
| 1488 | } | |
| 1489 | ocmd:unfreeze(playerid,params[]) | |
| 1490 | {
| |
| 1491 | new pID; | |
| 1492 | if(!IsSpielerTeamler(playerid,1)) return SendClientMessage(playerid,ROT,"Dein Adminlevel reicht nicht aus!"); | |
| 1493 | if(sscanf(params,"u",pID))return SendClientMessage(playerid,ROT,"Verwendung: /unfreeze [ID/Name]"); | |
| 1494 | if(!IsPlayerConnected(pID))return SendClientMessage(playerid,ROT,"Dieser Spieler ist nicht online!"); | |
| 1495 | {
| |
| 1496 | new str2[128], str3[128]; | |
| 1497 | format(str2,sizeof(str2),"Du wurdest entfreezet"); | |
| 1498 | format(str3,sizeof(str3),"Du hast den jeweiligen Spieler entfreezet"); | |
| 1499 | SendClientMessage(pID,0xB0AFB0FF,str2); | |
| 1500 | SendClientMessage(playerid,0xB0AFB0FF,str3); | |
| 1501 | TogglePlayerControllable(pID,1); | |
| 1502 | } | |
| 1503 | return 1; | |
| 1504 | } | |
| 1505 | ocmd:tp(playerid,params[]) | |
| 1506 | {
| |
| 1507 | new pID; | |
| 1508 | if(!IsSpielerTeamler(playerid,2)) return SendClientMessage(playerid,ROT,"Dein Adminlevel reicht nicht aus!"); | |
| 1509 | if(sscanf(params,"u",pID))return SendClientMessage(playerid,ROT,"Verwendung: /tp [ID/Name]"); | |
| 1510 | if(GetPVarInt(playerid,"Jail")==1) return SendClientMessage(playerid,ROT,"Du bist im Knast, und kannst dich daher nicht teleportieren!"); | |
| 1511 | if(!IsPlayerConnected(pID))return SendClientMessage(playerid,ROT,"Dieser Spieler ist nicht online!"); | |
| 1512 | if(pID == playerid)return SendClientMessage(playerid,ROT,"Du kannst dich nicht zu dir selbst porten!"); | |
| 1513 | {
| |
| 1514 | new Float: PosX, Float: PosY, Float: PosZ, str[128]; | |
| 1515 | new interiorid = GetPlayerInterior(pID); | |
| 1516 | new worldid = GetPlayerVirtualWorld(pID); | |
| 1517 | if(IsPlayerInAnyVehicle(playerid)) | |
| 1518 | {
| |
| 1519 | new vehicle = GetPlayerVehicleID(playerid); | |
| 1520 | GetPlayerPos(pID, PosX, PosY, PosZ); | |
| 1521 | SetVehicleVirtualWorld(vehicle,worldid); | |
| 1522 | SetPlayerInterior(playerid,interiorid); | |
| 1523 | SetPlayerVirtualWorld(playerid,worldid); | |
| 1524 | LinkVehicleToInterior(vehicle,interiorid); | |
| 1525 | SetVehiclePos(vehicle, PosX+1, PosY+1, PosZ); | |
| 1526 | PutPlayerInVehicle(playerid, vehicle, 0); | |
| 1527 | format(str,sizeof(str),"Du hast dich zu %s mit deinem Fahrzeug geportet!",SpielerName(pID)); | |
| 1528 | SendClientMessage(playerid,GRUEN,str); | |
| 1529 | } | |
| 1530 | else | |
| 1531 | {
| |
| 1532 | GetPlayerPos(pID, PosX, PosY, PosZ); | |
| 1533 | SetPlayerPos(playerid, PosX, PosY, PosZ); | |
| 1534 | SetPlayerInterior(playerid,interiorid); | |
| 1535 | SetPlayerVirtualWorld(playerid,worldid); | |
| 1536 | format(str,sizeof(str),"Du hast dich zu %s geportet!",SpielerName(pID)); | |
| 1537 | SendClientMessage(playerid,GRUEN,str); | |
| 1538 | } | |
| 1539 | } | |
| 1540 | return 1; | |
| 1541 | } | |
| 1542 | ocmd:tphere(playerid,params[]) | |
| 1543 | {
| |
| 1544 | new pID; | |
| 1545 | if(!IsSpielerTeamler(playerid,2)) return SendClientMessage(playerid,ROT,"Dein Adminlevel reicht nicht aus!"); | |
| 1546 | if(sscanf(params,"u",pID))return SendClientMessage(playerid,ROT,"Verwendung: /tphere [ID/Name]"); | |
| 1547 | if(GetPVarInt(playerid,"Jail")==1) return SendClientMessage(playerid,ROT,"Du bist im Knast, und kannst dich daher nicht teleportieren!"); | |
| 1548 | if(!IsPlayerConnected(pID))return SendClientMessage(playerid,ROT,"Dieser Spieler ist nicht online!"); | |
| 1549 | if(pID == playerid)return SendClientMessage(playerid,ROT,"Du kanst dich nicht selbst porten!"); | |
| 1550 | {
| |
| 1551 | new Float: PosX, Float: PosY, Float: PosZ ,str[128]; | |
| 1552 | new interiorid = GetPlayerInterior(playerid); | |
| 1553 | new worldid = GetPlayerVirtualWorld(playerid); | |
| 1554 | if(IsPlayerInAnyVehicle(playerid)) | |
| 1555 | {
| |
| 1556 | new vehicle = GetPlayerVehicleID(pID); | |
| 1557 | GetPlayerPos(playerid, PosX, PosY, PosZ); | |
| 1558 | SetVehicleVirtualWorld(vehicle,worldid); | |
| 1559 | SetPlayerInterior(pID,interiorid); | |
| 1560 | SetPlayerVirtualWorld(pID,worldid); | |
| 1561 | LinkVehicleToInterior(vehicle,interiorid); | |
| 1562 | SetVehiclePos(vehicle, PosX+1, PosY+1, PosZ); | |
| 1563 | PutPlayerInVehicle(pID, vehicle, 0); | |
| 1564 | format(str,sizeof(str),"Du hast %s zu dir mit seinem Fahrzeug geportet!",SpielerName(pID)); | |
| 1565 | SendClientMessage(playerid,GRUEN,str); | |
| 1566 | } | |
| 1567 | else | |
| 1568 | {
| |
| 1569 | GetPlayerPos(playerid, PosX, PosY, PosZ); | |
| 1570 | SetPlayerPos(pID, PosX, PosY, PosZ); | |
| 1571 | SetPlayerInterior(pID,interiorid); | |
| 1572 | SetPlayerVirtualWorld(pID,worldid); | |
| 1573 | format(str,sizeof(str),"Du hast %s zu dir geportet!",SpielerName(pID)); | |
| 1574 | SendClientMessage(playerid,GRUEN,str); | |
| 1575 | } | |
| 1576 | } | |
| 1577 | return 1; | |
| 1578 | } | |
| 1579 | stock SpielerSpeichern(playerid) | |
| 1580 | {
| |
| 1581 | if(GetPVarInt(playerid,"loggedin")==1) | |
| 1582 | {
| |
| 1583 | new Spielerdatei[64]; | |
| 1584 | new name[MAX_PLAYER_NAME]; | |
| 1585 | GetPlayerName(playerid,name,sizeof(name)); | |
| 1586 | format(Spielerdatei,sizeof(Spielerdatei),"/AccountsGunGame/%s.ini",name); | |
| 1587 | new timestr[32],datestr[32]; | |
| 1588 | getdate(Jahr, Monat, Tag); | |
| 1589 | gettime(Stunde, Minute); | |
| 1590 | format(datestr,32,"%02d.%02d.%d",Tag, Monat, Jahr); | |
| 1591 | format(timestr,32,"%02d:%02d",Stunde,Minute); | |
| 1592 | dini_Set(Spielerdatei,"Datum",datestr); | |
| 1593 | dini_Set(Spielerdatei,"Uhrzeit",timestr); | |
| 1594 | dini_IntSet(Spielerdatei,"Geld",GetPlayerMoney(playerid)); | |
| 1595 | dini_IntSet(Spielerdatei,"Rang",GetPVarInt(playerid,"Rang")); | |
| 1596 | dini_IntSet(Spielerdatei,"Banned",GetPVarInt(playerid,"Banned")); | |
| 1597 | dini_IntSet(Spielerdatei,"Level",GetPVarInt(playerid,"Level")); | |
| 1598 | dini_IntSet(Spielerdatei,"Kills",Kills[playerid]); | |
| 1599 | dini_IntSet(Spielerdatei,"Tode",Tode[playerid]); | |
| 1600 | } | |
| 1601 | return 1; | |
| 1602 | } | |
| 1603 | stock LoadAccount(playerid) | |
| 1604 | {
| |
| 1605 | new Spielerdatei[64]; | |
| 1606 | new name[MAX_PLAYER_NAME]; | |
| 1607 | GetPlayerName(playerid,name,sizeof(name)); | |
| 1608 | format(Spielerdatei,sizeof(Spielerdatei),"/AccountsGunGame/%s.ini",name); | |
| 1609 | GivePlayerMoney(playerid,dini_Int(Spielerdatei,"Geld")); | |
| 1610 | SetPVarInt(playerid,"Rang",dini_Int(Spielerdatei,"Rang")); | |
| 1611 | - | ocmd:team(playerid,params[]) |
| 1611 | + | |
| 1612 | SetPVarInt(playerid,"Banned",dini_Int(Spielerdatei,"Banned")); | |
| 1613 | - | new pID,rang; |
| 1613 | + | |
| 1614 | - | if(sscanf(params,"ui",pID,rang))return SendClientMessage(playerid,ROT,"Verwendung: /team [ID/Name] [Rang 1-4]"); |
| 1614 | + | |
| 1615 | - | if(GetOnlinePlayers() <= 3) return SendClientMessage(playerid,ROT,"Es sind weniger als 3 Spieler auf dem Server!"); |
| 1615 | + | |
| 1616 | return 1; | |
| 1617 | } | |
| 1618 | stock Register(playerid,key[]) | |
| 1619 | - | SetPlayerTeam(playerid,rang); |
| 1619 | + | |
| 1620 | - | SetPlayerTeam(pID,rang); |
| 1620 | + | |
| 1621 | - | format(str2,sizeof(str2),"%s hat dich in sein Team geholt!", SpielerName(playerid)); |
| 1621 | + | |
| 1622 | - | format(str3,sizeof(str3),"Du hast %s in dein Team geholt!", SpielerName(pID)); |
| 1622 | + | |
| 1623 | GetPlayerName(playerid,name,sizeof(name)); | |
| 1624 | format(Spielerdatei,sizeof(Spielerdatei),"/AccountsGunGame/%s.ini",name); | |
| 1625 | dini_Create(Spielerdatei); | |
| 1626 | getdate(Jahr, Monat, Tag); | |
| 1627 | gettime(Stunde, Minute); | |
| 1628 | format(datestr,32,"%02d.%02d.%d",Tag, Monat, Jahr); | |
| 1629 | format(timestr,32,"%02d:%02d",Stunde,Minute); | |
| 1630 | dini_Set(Spielerdatei,"Datum",datestr); | |
| 1631 | dini_Set(Spielerdatei,"Uhrzeit",timestr); | |
| 1632 | dini_Set(Spielerdatei,"Passwort",key); | |
| 1633 | dini_IntSet(Spielerdatei,"Geld",GetPlayerMoney(playerid)); | |
| 1634 | dini_IntSet(Spielerdatei,"Rang",GetPVarInt(playerid,"Rang")); | |
| 1635 | dini_IntSet(Spielerdatei,"Level",GetPVarInt(playerid,"Level")+1); | |
| 1636 | SendClientMessage(playerid,BLAU,"Erfolgreich registriert."); | |
| 1637 | SetPlayerScore(playerid,1); | |
| 1638 | SetPVarInt(playerid,"loggedin",1); | |
| 1639 | return 1; | |
| 1640 | } | |
| 1641 | ||
| 1642 | stock Login(playerid,key[]) | |
| 1643 | {
| |
| 1644 | new Spielerdatei[64]; | |
| 1645 | new name[MAX_PLAYER_NAME]; | |
| 1646 | GetPlayerName(playerid,name,sizeof(name)); | |
| 1647 | format(Spielerdatei,sizeof(Spielerdatei),"/AccountsGunGame/%s.ini",name); | |
| 1648 | if(!strcmp(key,dini_Get(Spielerdatei,"Passwort"),false)) | |
| 1649 | {
| |
| 1650 | LoadAccount(playerid); | |
| 1651 | SendClientMessage(playerid,BLAU,"Erfolgreich eingeloggt!"); | |
| 1652 | return 1; | |
| 1653 | } | |
| 1654 | else | |
| 1655 | {
| |
| 1656 | SendClientMessage(playerid,BLAU,"Falsches Passwort!"); | |
| 1657 | ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Bitte gebe dein Passwort ein!","Login","Abbrechen"); | |
| 1658 | return 1; | |
| 1659 | } | |
| 1660 | } | |
| 1661 | stock CreateInfo(playerid) | |
| 1662 | {
| |
| 1663 | Textdraw[playerid][0] = CreatePlayerTextDraw(playerid, 441.142852, 107.520004, "hud:radar_ammugun"); | |
| 1664 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][0], 0.000000, 0.000000); | |
| 1665 | - | ocmd:td(playerid,params[]) |
| 1665 | + | PlayerTextDrawTextSize(playerid, Textdraw[playerid][0], 30.476211, 22.613336); |
| 1666 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][0], 1); | |
| 1667 | - | if(!IsSpielerTeamler(playerid,2)) return SendClientMessage(playerid,ROT,"Dein Adminlevel reicht nicht aus!"); |
| 1667 | + | PlayerTextDrawColor(playerid, Textdraw[playerid][0], -1); |
| 1668 | - | PlayerTextDrawHide(playerid,Textdraw0[playerid]); |
| 1668 | + | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][0], 0); |
| 1669 | - | PlayerTextDrawHide(playerid,Textdraw1[playerid]); |
| 1669 | + | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][0], 0); |
| 1670 | - | PlayerTextDrawHide(playerid,Textdraw2[playerid]); |
| 1670 | + | PlayerTextDrawFont(playerid, Textdraw[playerid][0], 4); |
| 1671 | - | PlayerTextDrawHide(playerid,Textdraw3[playerid]); |
| 1671 | + | |
| 1672 | - | PlayerTextDrawHide(playerid,Textdraw4[playerid]); |
| 1672 | + | Textdraw[playerid][1] = CreatePlayerTextDraw(playerid, 438.095062, 137.813354, "hud:radar_emmetgun"); |
| 1673 | - | PlayerTextDrawHide(playerid,Textdraw5[playerid]); |
| 1673 | + | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][1], 0.000000, 0.000000); |
| 1674 | - | PlayerTextDrawHide(playerid,Textdraw6[playerid]); |
| 1674 | + | PlayerTextDrawTextSize(playerid, Textdraw[playerid][1], 35.047603, 22.186660); |
| 1675 | - | PlayerTextDrawHide(playerid,Textdraw7[playerid]); |
| 1675 | + | PlayerTextDrawAlignment(playerid, Textdraw[playerid][1], 1); |
| 1676 | - | PlayerTextDrawHide(playerid,Textdraw8[playerid]); |
| 1676 | + | PlayerTextDrawColor(playerid, Textdraw[playerid][1], -1); |
| 1677 | - | PlayerTextDrawHide(playerid,Textdraw9[playerid]); |
| 1677 | + | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][1], 0); |
| 1678 | - | PlayerTextDrawHide(playerid,Textdraw10[playerid]); |
| 1678 | + | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][1], 0); |
| 1679 | - | PlayerTextDrawHide(playerid,Textdraw11[playerid]); |
| 1679 | + | PlayerTextDrawFont(playerid, Textdraw[playerid][1], 4); |
| 1680 | - | PlayerTextDrawHide(playerid,Textdraw12[playerid]); |
| 1680 | + | |
| 1681 | - | PlayerTextDrawHide(playerid,Textdraw13[playerid]); |
| 1681 | + | Textdraw[playerid][2] = CreatePlayerTextDraw(playerid, 480.380889, 111.360046, "0"); |
| 1682 | - | PlayerTextDrawHide(playerid,Textdraw14[playerid]); |
| 1682 | + | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][2], 0.449999, 1.600000); |
| 1683 | - | PlayerTextDrawHide(playerid,Textdraw15[playerid]); |
| 1683 | + | PlayerTextDrawAlignment(playerid, Textdraw[playerid][2], 1); |
| 1684 | - | PlayerTextDrawHide(playerid,Textdraw16[playerid]); |
| 1684 | + | PlayerTextDrawColor(playerid, Textdraw[playerid][2], -1); |
| 1685 | - | PlayerTextDrawHide(playerid,Textdraw17[playerid]); |
| 1685 | + | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][2], 0); |
| 1686 | - | PlayerTextDrawHide(playerid,Textdraw18[playerid]); |
| 1686 | + | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][2], 1); |
| 1687 | - | PlayerTextDrawHide(playerid,Textdraw19[playerid]); |
| 1687 | + | PlayerTextDrawBackgroundColor(playerid, Textdraw[playerid][2], 51); |
| 1688 | PlayerTextDrawFont(playerid, Textdraw[playerid][2], 1); | |
| 1689 | PlayerTextDrawSetProportional(playerid, Textdraw[playerid][2], 1); | |
| 1690 | ||
| 1691 | Textdraw[playerid][3] = CreatePlayerTextDraw(playerid, 571.811035, 111.360031, "0"); | |
| 1692 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][3], 0.449999, 1.600000); | |
| 1693 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][3], 1); | |
| 1694 | PlayerTextDrawColor(playerid, Textdraw[playerid][3], -1); | |
| 1695 | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][3], 0); | |
| 1696 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][3], 1); | |
| 1697 | PlayerTextDrawBackgroundColor(playerid, Textdraw[playerid][3], 51); | |
| 1698 | PlayerTextDrawFont(playerid, Textdraw[playerid][3], 1); | |
| 1699 | PlayerTextDrawSetProportional(playerid, Textdraw[playerid][3], 1); | |
| 1700 | ||
| 1701 | Textdraw[playerid][4] = CreatePlayerTextDraw(playerid, 536.000244, 108.373336, "hud:radar_LocoSyndicate"); | |
| 1702 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][4], 0.000000, 0.000000); | |
| 1703 | PlayerTextDrawTextSize(playerid, Textdraw[playerid][4], 24.380918, 22.186679); | |
| 1704 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][4], 1); | |
| 1705 | PlayerTextDrawColor(playerid, Textdraw[playerid][4], -1); | |
| 1706 | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][4], 0); | |
| 1707 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][4], 0); | |
| 1708 | PlayerTextDrawFont(playerid, Textdraw[playerid][4], 4); | |
| 1709 | ||
| 1710 | Textdraw[playerid][5] = CreatePlayerTextDraw(playerid, 480.000000, 140.800033, "Waffe"); | |
| 1711 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][5], 0.449999, 1.600000); | |
| 1712 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][5], 1); | |
| 1713 | PlayerTextDrawColor(playerid, Textdraw[playerid][5], -1); | |
| 1714 | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][5], 0); | |
| 1715 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][5], 1); | |
| 1716 | PlayerTextDrawBackgroundColor(playerid, Textdraw[playerid][5], 51); | |
| 1717 | PlayerTextDrawFont(playerid, Textdraw[playerid][5], 1); | |
| 1718 | PlayerTextDrawSetProportional(playerid, Textdraw[playerid][5], 1); | |
| 1719 | ||
| 1720 | Textdraw[playerid][6] = CreatePlayerTextDraw(playerid, 659.143066, 469.553222, "usebox"); | |
| 1721 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][6], 0.000000, -14.672646); | |
| 1722 | PlayerTextDrawTextSize(playerid, Textdraw[playerid][6], -11.142857, 0.000000); | |
| 1723 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][6], 1); | |
| 1724 | PlayerTextDrawColor(playerid, Textdraw[playerid][6], 0); | |
| 1725 | PlayerTextDrawUseBox(playerid, Textdraw[playerid][6], true); | |
| 1726 | PlayerTextDrawBoxColor(playerid, Textdraw[playerid][6], 255); | |
| 1727 | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][6], 0); | |
| 1728 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][6], 0); | |
| 1729 | PlayerTextDrawFont(playerid, Textdraw[playerid][6], 0); | |
| 1730 | ||
| 1731 | Textdraw[playerid][7] = CreatePlayerTextDraw(playerid, 683.905639, 1.500000, "usebox"); | |
| 1732 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][7], 0.000000, 12.037203); | |
| 1733 | PlayerTextDrawTextSize(playerid, Textdraw[playerid][7], -2.000000, 0.000000); | |
| 1734 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][7], 1); | |
| 1735 | PlayerTextDrawColor(playerid, Textdraw[playerid][7], 0); | |
| 1736 | PlayerTextDrawUseBox(playerid, Textdraw[playerid][7], true); | |
| 1737 | PlayerTextDrawBoxColor(playerid, Textdraw[playerid][7], 255); | |
| 1738 | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][7], 0); | |
| 1739 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][7], 0); | |
| 1740 | PlayerTextDrawFont(playerid, Textdraw[playerid][7], 0); | |
| 1741 | ||
| 1742 | Textdraw[playerid][8] = CreatePlayerTextDraw(playerid, 427.809722, 48.640010, "Willkommen auf"); | |
| 1743 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][8], 0.449999, 1.600000); | |
| 1744 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][8], 1); | |
| 1745 | PlayerTextDrawColor(playerid, Textdraw[playerid][8], -1); | |
| 1746 | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][8], 0); | |
| 1747 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][8], 1); | |
| 1748 | PlayerTextDrawBackgroundColor(playerid, Textdraw[playerid][8], 51); | |
| 1749 | PlayerTextDrawFont(playerid, Textdraw[playerid][8], 2); | |
| 1750 | PlayerTextDrawSetProportional(playerid, Textdraw[playerid][8], 1); | |
| 1751 | ||
| 1752 | Textdraw[playerid][9] = CreatePlayerTextDraw(playerid, 416.762054, 68.693359, "Gun Game by firestormZ!"); | |
| 1753 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][9], 0.449999, 1.600000); | |
| 1754 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][9], 1); | |
| 1755 | PlayerTextDrawColor(playerid, Textdraw[playerid][9], 16777215); | |
| 1756 | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][9], 0); | |
| 1757 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][9], 0); | |
| 1758 | PlayerTextDrawBackgroundColor(playerid, Textdraw[playerid][9], -5963521); | |
| 1759 | PlayerTextDrawFont(playerid, Textdraw[playerid][9], 3); | |
| 1760 | PlayerTextDrawSetProportional(playerid, Textdraw[playerid][9], 1); | |
| 1761 | ||
| 1762 | Textdraw[playerid][10] = CreatePlayerTextDraw(playerid, 377.904815, 52.480007, "hud:radar_ammugun"); | |
| 1763 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][10], 0.003809, -0.085333); | |
| 1764 | PlayerTextDrawTextSize(playerid, Textdraw[playerid][10], 28.571428, 19.199996); | |
| 1765 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][10], 1); | |
| 1766 | PlayerTextDrawColor(playerid, Textdraw[playerid][10], -1); | |
| 1767 | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][10], 0); | |
| 1768 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][10], 0); | |
| 1769 | PlayerTextDrawFont(playerid, Textdraw[playerid][10], 4); | |
| 1770 | ||
| 1771 | Textdraw[playerid][11] = CreatePlayerTextDraw(playerid, 483.428588, 87.466697, "v3.7"); | |
| 1772 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][11], 0.449999, 1.600000); | |
| 1773 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][11], 1); | |
| 1774 | PlayerTextDrawColor(playerid, Textdraw[playerid][11], -1); | |
| 1775 | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][11], 0); | |
| 1776 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][11], 1); | |
| 1777 | PlayerTextDrawBackgroundColor(playerid, Textdraw[playerid][11], 51); | |
| 1778 | PlayerTextDrawFont(playerid, Textdraw[playerid][11], 2); | |
| 1779 | PlayerTextDrawSetProportional(playerid, Textdraw[playerid][11], 1); | |
| 1780 | ||
| 1781 | Textdraw[playerid][12] = CreatePlayerTextDraw(playerid, 377.904815, 59.306694, "hud:radar_emmetgun"); | |
| 1782 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][12], 0.000000, 0.000000); | |
| 1783 | PlayerTextDrawTextSize(playerid, Textdraw[playerid][12], 28.952348, 20.053331); | |
| 1784 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][12], 1); | |
| 1785 | PlayerTextDrawColor(playerid, Textdraw[playerid][12], -1); | |
| 1786 | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][12], 37); | |
| 1787 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][12], 0); | |
| 1788 | PlayerTextDrawFont(playerid, Textdraw[playerid][12], 4); | |
| 1789 | ||
| 1790 | Textdraw[playerid][13] = CreatePlayerTextDraw(playerid, 378.666687, 66.559997, "hud:radar_emmetgun"); | |
| 1791 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][13], 0.000000, 0.000000); | |
| 1792 | PlayerTextDrawTextSize(playerid, Textdraw[playerid][13], 27.428588, 20.906660); | |
| 1793 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][13], 1); | |
| 1794 | PlayerTextDrawColor(playerid, Textdraw[playerid][13], -1); | |
| 1795 | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][13], 0); | |
| 1796 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][13], 0); | |
| 1797 | PlayerTextDrawFont(playerid, Textdraw[playerid][13], 4); | |
| 1798 | ||
| 1799 | Textdraw[playerid][14] = CreatePlayerTextDraw(playerid, 8.380956, 119.040023, "Navigation"); | |
| 1800 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][14], 0.449999, 1.600000); | |
| 1801 | PlayerTextDrawAlignment(playerid, Textdraw[playerid][14], 1); | |
| 1802 | PlayerTextDrawColor(playerid, Textdraw[playerid][14], 16777215); | |
| 1803 | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][14], 0); | |
| 1804 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][14], 1); | |
| 1805 | PlayerTextDrawBackgroundColor(playerid, Textdraw[playerid][14], 51); | |
| 1806 | PlayerTextDrawFont(playerid, Textdraw[playerid][14], 2); | |
| 1807 | PlayerTextDrawSetProportional(playerid, Textdraw[playerid][14], 1); | |
| 1808 | ||
| 1809 | Textdraw[playerid][15] = CreatePlayerTextDraw(playerid, 125.047630, 136.753341, "usebox"); | |
| 1810 | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][15], 0.000000, -0.138889); | |
| 1811 | - | Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 441.142852, 107.520004, "hud:radar_ammugun"); |
| 1811 | + | PlayerTextDrawTextSize(playerid, Textdraw[playerid][15], 5.238095, 0.000000); |
| 1812 | - | PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 0.000000); |
| 1812 | + | PlayerTextDrawAlignment(playerid, Textdraw[playerid][15], 1); |
| 1813 | - | PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 30.476211, 22.613336); |
| 1813 | + | PlayerTextDrawColor(playerid, Textdraw[playerid][15], 0); |
| 1814 | - | PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1); |
| 1814 | + | PlayerTextDrawUseBox(playerid, Textdraw[playerid][15], true); |
| 1815 | - | PlayerTextDrawColor(playerid, Textdraw0[playerid], -1); |
| 1815 | + | PlayerTextDrawBoxColor(playerid, Textdraw[playerid][15], -1); |
| 1816 | - | PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0); |
| 1816 | + | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][15], 0); |
| 1817 | - | PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0); |
| 1817 | + | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][15], 0); |
| 1818 | - | PlayerTextDrawFont(playerid, Textdraw0[playerid], 4); |
| 1818 | + | PlayerTextDrawFont(playerid, Textdraw[playerid][15], 0); |
| 1819 | ||
| 1820 | - | Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 438.095062, 137.813354, "hud:radar_emmetgun"); |
| 1820 | + | Textdraw[playerid][16] = CreatePlayerTextDraw(playerid, 641.619262, 112.859992, "usebox"); |
| 1821 | - | PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.000000, 0.000000); |
| 1821 | + | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][16], 0.000000, -0.059311); |
| 1822 | - | PlayerTextDrawTextSize(playerid, Textdraw1[playerid], 35.047603, 22.186660); |
| 1822 | + | PlayerTextDrawTextSize(playerid, Textdraw[playerid][16], -3.523809, 0.000000); |
| 1823 | - | PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1); |
| 1823 | + | PlayerTextDrawAlignment(playerid, Textdraw[playerid][16], 1); |
| 1824 | - | PlayerTextDrawColor(playerid, Textdraw1[playerid], -1); |
| 1824 | + | PlayerTextDrawColor(playerid, Textdraw[playerid][16], 0); |
| 1825 | - | PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0); |
| 1825 | + | PlayerTextDrawUseBox(playerid, Textdraw[playerid][16], true); |
| 1826 | - | PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 0); |
| 1826 | + | PlayerTextDrawBoxColor(playerid, Textdraw[playerid][16], -16776961); |
| 1827 | - | PlayerTextDrawFont(playerid, Textdraw1[playerid], 4); |
| 1827 | + | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][16], 0); |
| 1828 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][16], 0); | |
| 1829 | - | Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 480.380889, 111.360046, "0"); |
| 1829 | + | PlayerTextDrawFont(playerid, Textdraw[playerid][16], 0); |
| 1830 | - | PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.449999, 1.600000); |
| 1830 | + | |
| 1831 | - | PlayerTextDrawAlignment(playerid, Textdraw2[playerid], 1); |
| 1831 | + | Textdraw[playerid][17] = CreatePlayerTextDraw(playerid, 6.095288, 147.626693, "-> Login/Register"); |
| 1832 | - | PlayerTextDrawColor(playerid, Textdraw2[playerid], -1); |
| 1832 | + | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][17], 0.290000, 1.510400); |
| 1833 | - | PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 0); |
| 1833 | + | PlayerTextDrawAlignment(playerid, Textdraw[playerid][17], 1); |
| 1834 | - | PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 1); |
| 1834 | + | PlayerTextDrawColor(playerid, Textdraw[playerid][17], -1); |
| 1835 | - | PlayerTextDrawBackgroundColor(playerid, Textdraw2[playerid], 51); |
| 1835 | + | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][17], 0); |
| 1836 | - | PlayerTextDrawFont(playerid, Textdraw2[playerid], 1); |
| 1836 | + | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][17], 1); |
| 1837 | - | PlayerTextDrawSetProportional(playerid, Textdraw2[playerid], 1); |
| 1837 | + | PlayerTextDrawBackgroundColor(playerid, Textdraw[playerid][17], 51); |
| 1838 | PlayerTextDrawFont(playerid, Textdraw[playerid][17], 2); | |
| 1839 | - | Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 571.811035, 111.360031, "0"); |
| 1839 | + | PlayerTextDrawSetProportional(playerid, Textdraw[playerid][17], 1); |
| 1840 | - | PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 0.449999, 1.600000); |
| 1840 | + | PlayerTextDrawTextSize(playerid, Textdraw[playerid][17], 126.095288, 10.0); |
| 1841 | - | PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1); |
| 1841 | + | PlayerTextDrawSetSelectable(playerid, Textdraw[playerid][17], true); |
| 1842 | - | PlayerTextDrawColor(playerid, Textdraw3[playerid], -1); |
| 1842 | + | |
| 1843 | - | PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 0); |
| 1843 | + | Textdraw[playerid][18] = CreatePlayerTextDraw(playerid, 5.714287, 166.400024, "-> Spiel verlassen"); |
| 1844 | - | PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 1); |
| 1844 | + | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][18], 0.296857, 1.531733); |
| 1845 | - | PlayerTextDrawBackgroundColor(playerid, Textdraw3[playerid], 51); |
| 1845 | + | PlayerTextDrawAlignment(playerid, Textdraw[playerid][18], 1); |
| 1846 | - | PlayerTextDrawFont(playerid, Textdraw3[playerid], 1); |
| 1846 | + | PlayerTextDrawColor(playerid, Textdraw[playerid][18], -1); |
| 1847 | - | PlayerTextDrawSetProportional(playerid, Textdraw3[playerid], 1); |
| 1847 | + | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][18], 0); |
| 1848 | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][18], 1); | |
| 1849 | - | Textdraw4[playerid] = CreatePlayerTextDraw(playerid, 536.000244, 108.373336, "hud:radar_LocoSyndicate"); |
| 1849 | + | PlayerTextDrawBackgroundColor(playerid, Textdraw[playerid][18], 51); |
| 1850 | - | PlayerTextDrawLetterSize(playerid, Textdraw4[playerid], 0.000000, 0.000000); |
| 1850 | + | PlayerTextDrawFont(playerid, Textdraw[playerid][18], 2); |
| 1851 | - | PlayerTextDrawTextSize(playerid, Textdraw4[playerid], 24.380918, 22.186679); |
| 1851 | + | PlayerTextDrawSetProportional(playerid, Textdraw[playerid][18], 1); |
| 1852 | - | PlayerTextDrawAlignment(playerid, Textdraw4[playerid], 1); |
| 1852 | + | PlayerTextDrawTextSize(playerid, Textdraw[playerid][18], 135.714287, 10.0); |
| 1853 | - | PlayerTextDrawColor(playerid, Textdraw4[playerid], -1); |
| 1853 | + | PlayerTextDrawSetSelectable(playerid, Textdraw[playerid][18], true); |
| 1854 | - | PlayerTextDrawSetShadow(playerid, Textdraw4[playerid], 0); |
| 1854 | + | |
| 1855 | - | PlayerTextDrawSetOutline(playerid, Textdraw4[playerid], 0); |
| 1855 | + | Textdraw[playerid][19] = CreatePlayerTextDraw(playerid, 662.096313, 341.333221, "usebox"); |
| 1856 | - | PlayerTextDrawFont(playerid, Textdraw4[playerid], 4); |
| 1856 | + | PlayerTextDrawLetterSize(playerid, Textdraw[playerid][19], 0.000000, -0.027987); |
| 1857 | PlayerTextDrawTextSize(playerid, Textdraw[playerid][19], -0.857140, 0.000000); | |
| 1858 | - | Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 480.000000, 140.800033, "Waffe"); |
| 1858 | + | PlayerTextDrawAlignment(playerid, Textdraw[playerid][19], 1); |
| 1859 | - | PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 0.449999, 1.600000); |
| 1859 | + | PlayerTextDrawColor(playerid, Textdraw[playerid][19], 0); |
| 1860 | - | PlayerTextDrawAlignment(playerid, Textdraw5[playerid], 1); |
| 1860 | + | PlayerTextDrawUseBox(playerid, Textdraw[playerid][19], true); |
| 1861 | - | PlayerTextDrawColor(playerid, Textdraw5[playerid], -1); |
| 1861 | + | PlayerTextDrawBoxColor(playerid, Textdraw[playerid][19], -16776961); |
| 1862 | - | PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 0); |
| 1862 | + | PlayerTextDrawSetShadow(playerid, Textdraw[playerid][19], 0); |
| 1863 | - | PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 1); |
| 1863 | + | PlayerTextDrawSetOutline(playerid, Textdraw[playerid][19], 0); |
| 1864 | - | PlayerTextDrawBackgroundColor(playerid, Textdraw5[playerid], 51); |
| 1864 | + | PlayerTextDrawFont(playerid, Textdraw[playerid][19], 0); |
| 1865 | - | PlayerTextDrawFont(playerid, Textdraw5[playerid], 1); |
| 1865 | + | |
| 1866 | - | PlayerTextDrawSetProportional(playerid, Textdraw5[playerid], 1); |
| 1866 | + | |
| 1867 | {
| |
| 1868 | - | Textdraw6[playerid] = CreatePlayerTextDraw(playerid, 659.143066, 469.553222, "usebox"); |
| 1868 | + | |
| 1869 | - | PlayerTextDrawLetterSize(playerid, Textdraw6[playerid], 0.000000, -14.672646); |
| 1869 | + | |
| 1870 | - | PlayerTextDrawTextSize(playerid, Textdraw6[playerid], -11.142857, 0.000000); |
| 1870 | + | |
| 1871 | - | PlayerTextDrawAlignment(playerid, Textdraw6[playerid], 1); |
| 1871 | + | |
| 1872 | - | PlayerTextDrawColor(playerid, Textdraw6[playerid], 0); |
| 1872 | + | |
| 1873 | - | PlayerTextDrawUseBox(playerid, Textdraw6[playerid], true); |
| 1873 | + | |
| 1874 | - | PlayerTextDrawBoxColor(playerid, Textdraw6[playerid], 255); |
| 1874 | + | |
| 1875 | - | PlayerTextDrawSetShadow(playerid, Textdraw6[playerid], 0); |
| 1875 | + | |
| 1876 | - | PlayerTextDrawSetOutline(playerid, Textdraw6[playerid], 0); |
| 1876 | + | |
| 1877 | - | PlayerTextDrawFont(playerid, Textdraw6[playerid], 0); |
| 1877 | + | |
| 1878 | {
| |
| 1879 | - | Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 683.905639, 1.500000, "usebox"); |
| 1879 | + | |
| 1880 | - | PlayerTextDrawLetterSize(playerid, Textdraw7[playerid], 0.000000, 12.037203); |
| 1880 | + | |
| 1881 | - | PlayerTextDrawTextSize(playerid, Textdraw7[playerid], -2.000000, 0.000000); |
| 1881 | + | |
| 1882 | - | PlayerTextDrawAlignment(playerid, Textdraw7[playerid], 1); |
| 1882 | + | |
| 1883 | - | PlayerTextDrawColor(playerid, Textdraw7[playerid], 0); |
| 1883 | + | |
| 1884 | - | PlayerTextDrawUseBox(playerid, Textdraw7[playerid], true); |
| 1884 | + | |
| 1885 | - | PlayerTextDrawBoxColor(playerid, Textdraw7[playerid], 255); |
| 1885 | + | |
| 1886 | - | PlayerTextDrawSetShadow(playerid, Textdraw7[playerid], 0); |
| 1886 | + | |
| 1887 | - | PlayerTextDrawSetOutline(playerid, Textdraw7[playerid], 0); |
| 1887 | + | |
| 1888 | - | PlayerTextDrawFont(playerid, Textdraw7[playerid], 0); |
| 1888 | + | |
| 1889 | } | |
| 1890 | - | Textdraw8[playerid] = CreatePlayerTextDraw(playerid, 427.809722, 48.640010, "Willkommen auf"); |
| 1890 | + | |
| 1891 | - | PlayerTextDrawLetterSize(playerid, Textdraw8[playerid], 0.449999, 1.600000); |
| 1891 | + | |
| 1892 | - | PlayerTextDrawAlignment(playerid, Textdraw8[playerid], 1); |
| 1892 | + | |
| 1893 | - | PlayerTextDrawColor(playerid, Textdraw8[playerid], -1); |
| 1893 | + | |
| 1894 | - | PlayerTextDrawSetShadow(playerid, Textdraw8[playerid], 0); |
| 1894 | + | |
| 1895 | - | PlayerTextDrawSetOutline(playerid, Textdraw8[playerid], 1); |
| 1895 | + | |
| 1896 | - | PlayerTextDrawBackgroundColor(playerid, Textdraw8[playerid], 51); |
| 1896 | + | |
| 1897 | - | PlayerTextDrawFont(playerid, Textdraw8[playerid], 2); |
| 1897 | + | |
| 1898 | - | PlayerTextDrawSetProportional(playerid, Textdraw8[playerid], 1); |
| 1898 | + | |
| 1899 | } | |
| 1900 | - | Textdraw9[playerid] = CreatePlayerTextDraw(playerid, 416.762054, 68.693359, "Gun Game by firestormZ!"); |
| 1900 | + | |
| 1901 | - | PlayerTextDrawLetterSize(playerid, Textdraw9[playerid], 0.449999, 1.600000); |
| 1901 | + | |
| 1902 | - | PlayerTextDrawAlignment(playerid, Textdraw9[playerid], 1); |
| 1902 | + | |
| 1903 | - | PlayerTextDrawColor(playerid, Textdraw9[playerid], 16777215); |
| 1903 | + | |
| 1904 | - | PlayerTextDrawSetShadow(playerid, Textdraw9[playerid], 0); |
| 1904 | + | |
| 1905 | - | PlayerTextDrawSetOutline(playerid, Textdraw9[playerid], 0); |
| 1905 | + | |
| 1906 | - | PlayerTextDrawBackgroundColor(playerid, Textdraw9[playerid], -5963521); |
| 1906 | + |