"Server Closed Connection" problem
#1

Hallo guys!,

So I joined my server for the first time, and it works. But then I quitted. Later I came back in, but every time I try to spawn, it says "Server Closed Connection" (Please see attachment )

Also what bugs me is that when I goto the script files to change my admin level... Its just blank. There is no settings or anything. My name is there, but its just empty.

Please help me!
Assassination.
Reply
#2

Idiot its a RP server right?
Go with Name like : Firstname_Lastname !

I never played rp server but im creating one. :P
Reply
#3

doesnt work
Reply
#4

can you show me your serverlog.txt?
Reply
#5

Show us the OnPlayerSpawn callback or the player loading function.
Reply
#6

Server Log:


----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[13:30:34]
[13:30:34] Server Plugins
[13:30:34] --------------
[13:30:34] Loading plugin: irc
[13:30:34] Failed.
[13:30:34] Loading plugin: streamer
[13:30:34]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[13:30:34] Loaded.
[13:30:34] Loading plugin: whirlpool.dll
[13:30:34]
[13:30:34] ==================
[13:30:34]
[13:30:34] Whirlpool loaded
[13:30:34]
[13:30:34] ==================
[13:30:34]
[13:30:34] Loaded.
[13:30:34] Loading plugin: regex.dll
[13:30:34] Failed.
[13:30:34] Loading plugin: sscanf
[13:30:34]

[13:30:34] ===============================

[13:30:34] sscanf plugin loaded.

[13:30:34] © 2009 Alex "******" Cole

[13:30:34] 0.3d-R2 500 Players "dnee"

[13:30:34] ===============================

[13:30:34] Loaded.
[13:30:34] Loaded 3 plugins.

[13:30:34]
[13:30:34] Filterscripts
[13:30:34] ---------------
[13:30:34] Loading filterscript 'KCVS.amx'...
[13:30:34] Unable to load filterscript 'KCVS.amx'.
[13:30:34] Loading filterscript 'gl_property.amx'...
[13:30:34]
-----------------------------------
[13:30:34] Grand Larceny Property Filterscript
[13:30:34] -----------------------------------

[13:30:34] Loading filterscript 'gl_mapicon.amx'...
[13:30:34] Loading filterscript 'ls_mall.amx'...
[13:30:34] Loading filterscript 'attachments.amx'...
[13:30:34] Loading filterscript 'skinchanger.amx'...
[13:30:34]
--Admin Player Skin Changer Loaded

[13:30:34] Loading filterscript 'vspawner.amx'...
[13:30:34]
--Admin Vehicle Spawner Loaded

[13:30:34] Loaded 6 filterscripts.

[13:30:34]
[13:30:34] =======================================
[13:30:34] | |
[13:30:34] | YSI version 1.04.0000 |
[13:30:34] | By Alex "******" Cole |
[13:30:34] | |
[13:30:34] =======================================
[13:30:34]
[13:30:35] [Checkpoint Manager : Version 0.1.1b] System Initialized...
[13:30:35] [Checkpoint Manager] Checkpoint created (1) at slot 0
[13:30:35] Checkpoint Position: { 2268.099121, 2449.289062, -7.195300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (2) at slot 1
[13:30:35] Checkpoint Position: { 2268.074462, 2449.279541, 3.531300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (3) at slot 2
[13:30:35] Checkpoint Position: { 2287.040039, 2432.365966, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (4) at slot 3
[13:30:35] Checkpoint Position: { 2337.164794, 2459.312988, 14.974200 }
[13:30:35] [Checkpoint Manager] Checkpoint created (5) at slot 4
[13:30:35] Checkpoint Position: { 2297.117431, 2451.505126, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (6) at slot 5
[13:30:35] Checkpoint Position: { 2296.071289, 2458.123535, 38.687500 }
[13:30:35] [Checkpoint Manager] Checkpoint created (7) at slot 6
[13:30:35] Checkpoint Position: { 2270.976074, 2293.817871, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created ( at slot 7
[13:30:35] Checkpoint Position: { 2127.586914, 2379.621093, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (9) at slot 8
[13:30:35] Checkpoint Position: { 2016.976806, 1916.406494, 12.342399 }
[13:30:35] [Checkpoint Manager] Checkpoint created (10) at slot 9
[13:30:35] Checkpoint Position: { 2196.957031, 1677.163696, 12.367199 }
[13:30:35] [Checkpoint Manager] Checkpoint created (11) at slot 10
[13:30:35] Checkpoint Position: { 2019.319580, 1007.748718, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (12) at slot 11
[13:30:35] Checkpoint Position: { 2159.540527, 943.177612, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (91) at slot 12
[13:30:35] Checkpoint Position: { 2319.348632, 2391.804687, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (13) at slot 13
[13:30:35] Checkpoint Position: { 2367.055175, 2071.069335, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (14) at slot 14
[13:30:35] Checkpoint Position: { 2393.273681, 2041.565673, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (15) at slot 15
[13:30:35] Checkpoint Position: { 2472.865478, 2034.170166, 11.062500 }
[13:30:35] [Checkpoint Manager] Checkpoint created (16) at slot 16
[13:30:35] Checkpoint Position: { 2452.530761, 2065.190185, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (17) at slot 17
[13:30:35] Checkpoint Position: { 2546.527099, 1972.657104, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (19) at slot 18
[13:30:35] Checkpoint Position: { 2194.938964, 1990.994750, 12.296899 }
[13:30:35] [Checkpoint Manager] Checkpoint created (1 at slot 19
[13:30:35] Checkpoint Position: { 2412.503906, 1123.818969, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (96) at slot 20
[13:30:35] Checkpoint Position: { 2247.670166, 2396.168701, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (30) at slot 21
[13:30:35] Checkpoint Position: { 1658.495971, 2250.043701, 11.070099 }
[13:30:35] [Checkpoint Manager] Checkpoint created (20) at slot 22
[13:30:35] Checkpoint Position: { 1157.924560, 2072.287353, 11.062500 }
[13:30:35] [Checkpoint Manager] Checkpoint created (21) at slot 23
[13:30:35] Checkpoint Position: { 776.720825, 1871.436035, 4.906799 }
[13:30:35] [Checkpoint Manager] Checkpoint created (22) at slot 24
[13:30:35] Checkpoint Position: { 173.040206, 1177.146118, 14.757800 }
[13:30:35] [Checkpoint Manager] Checkpoint created (102) at slot 25
[13:30:35] Checkpoint Position: { -1213.829223, 1830.374877, 41.929698 }
[13:30:35] [Checkpoint Manager] Checkpoint created (23) at slot 26
[13:30:35] Checkpoint Position: { -316.160888, 829.888671, 14.242199 }
[13:30:35] [Checkpoint Manager] Checkpoint created (24) at slot 27
[13:30:35] Checkpoint Position: { -1508.885131, 2610.700439, 55.835899 }
[13:30:35] [Checkpoint Manager] Checkpoint created (25) at slot 28
[13:30:35] Checkpoint Position: { 2556.951171, 2065.373046, 11.099499 }
[13:30:35] [Checkpoint Manager] Checkpoint created (26) at slot 29
[13:30:35] Checkpoint Position: { 2169.414306, 2795.926269, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (99) at slot 30
[13:30:35] Checkpoint Position: { 1872.255371, 2071.885009, 11.062500 }
[13:30:35] [Checkpoint Manager] Checkpoint created (27) at slot 31
[13:30:35] Checkpoint Position: { -1457.981567, 2589.977050, 55.995700 }
[13:30:35] [Checkpoint Manager] Checkpoint created (2 at slot 32
[13:30:35] Checkpoint Position: { -179.197494, 1133.132446, 19.742200 }
[13:30:35] [Checkpoint Manager] Checkpoint created (29) at slot 33
[13:30:35] Checkpoint Position: { -828.147399, 1504.598754, 19.852899 }
[13:30:35] [Checkpoint Manager] Checkpoint created (31) at slot 34
[13:30:35] Checkpoint Position: { 2351.855468, 2533.619873, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (60) at slot 35
[13:30:35] Checkpoint Position: { 2316.616943, -7.394700, 26.742200 }
[13:30:35] [Checkpoint Manager] Checkpoint created (61) at slot 36
[13:30:35] Checkpoint Position: { 230.026092, 165.089096, 1003.023376 }
[13:30:35] [Checkpoint Manager] Checkpoint created (62) at slot 37
[13:30:35] Checkpoint Position: { 1139.719848, -4.064400, 1000.671875 }
[13:30:35] [Checkpoint Manager] Checkpoint created (63) at slot 38
[13:30:35] Checkpoint Position: { 1139.719848, -4.064400, 1000.671875 }
[13:30:35] [Checkpoint Manager] Checkpoint created (64) at slot 39
[13:30:35] Checkpoint Position: { 1139.719848, -4.064400, 1000.671875 }
[13:30:35] [Checkpoint Manager] Checkpoint created (65) at slot 40
[13:30:35] Checkpoint Position: { 2156.691650, 1599.537719, 1006.179687 }
[13:30:35] [Checkpoint Manager] Checkpoint created (66) at slot 41
[13:30:35] Checkpoint Position: { 1955.369140, 1018.045471, 992.468811 }
[13:30:35] [Checkpoint Manager] Checkpoint created (67) at slot 42
[13:30:35] Checkpoint Position: { 295.583312, -80.805000, 1001.515625 }
[13:30:35] [Checkpoint Manager] Checkpoint created (6 at slot 43
[13:30:35] Checkpoint Position: { 295.583312, -80.805000, 1001.515625 }
[13:30:35] [Checkpoint Manager] Checkpoint created (69) at slot 44
[13:30:35] Checkpoint Position: { 295.583312, -80.805000, 1001.515625 }
[13:30:35] [Checkpoint Manager] Checkpoint created (70) at slot 45
[13:30:35] Checkpoint Position: { 295.583312, -80.805000, 1001.515625 }
[13:30:35] [Checkpoint Manager] Checkpoint created (71) at slot 46
[13:30:35] Checkpoint Position: { 295.583312, -80.805000, 1001.515625 }
[13:30:35] [Checkpoint Manager] Checkpoint created (93) at slot 47
[13:30:35] Checkpoint Position: { 295.583312, -80.805000, 1001.515625 }
[13:30:35] [Checkpoint Manager] Checkpoint created (72) at slot 48
[13:30:35] Checkpoint Position: { 361.829895, 173.728195, 1008.382812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (73) at slot 49
[13:30:35] Checkpoint Position: { 376.549804, -67.438903, 1001.507812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (74) at slot 50
[13:30:35] Checkpoint Position: { 376.549804, -67.438903, 1001.507812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (75) at slot 51
[13:30:35] Checkpoint Position: { 376.549804, -67.438903, 1001.507812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (76) at slot 52
[13:30:35] Checkpoint Position: { 371.588806, -6.018799, 1001.858886 }
[13:30:35] [Checkpoint Manager] Checkpoint created (77) at slot 53
[13:30:35] Checkpoint Position: { 371.588806, -6.018799, 1001.858886 }
[13:30:35] [Checkpoint Manager] Checkpoint created (101) at slot 54
[13:30:35] Checkpoint Position: { 371.588806, -6.018799, 1001.858886 }
[13:30:35] [Checkpoint Manager] Checkpoint created (7 at slot 55
[13:30:35] Checkpoint Position: { 376.549804, -67.438903, 1001.507812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (97) at slot 56
[13:30:35] Checkpoint Position: { 376.549804, -67.438903, 1001.507812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (79) at slot 57
[13:30:35] Checkpoint Position: { -10.603500, -178.263504, 1003.546875 }
[13:30:35] [Checkpoint Manager] Checkpoint created (80) at slot 58
[13:30:35] Checkpoint Position: { -10.603500, -178.263504, 1003.546875 }
[13:30:35] [Checkpoint Manager] Checkpoint created (81) at slot 59
[13:30:35] Checkpoint Position: { -10.603500, -178.263504, 1003.546875 }
[13:30:35] [Checkpoint Manager] Checkpoint created (94) at slot 60
[13:30:35] Checkpoint Position: { -10.603500, -178.263504, 1003.546875 }
[13:30:35] [Checkpoint Manager] Checkpoint created (82) at slot 61
[13:30:35] Checkpoint Position: { 2316.616943, -7.394700, 26.742200 }
[13:30:35] [Checkpoint Manager] Checkpoint created (83) at slot 62
[13:30:35] Checkpoint Position: { 2316.616943, -7.394700, 26.742200 }
[13:30:35] [Checkpoint Manager] Checkpoint created (84) at slot 63
[13:30:35] Checkpoint Position: { 2316.616943, -7.394700, 26.742200 }
[13:30:35] [Checkpoint Manager] Checkpoint created (85) at slot 64
[13:30:35] Checkpoint Position: { 374.756988, -118.826400, 1001.499511 }
[13:30:35] [Checkpoint Manager] Checkpoint created (32) at slot 65
[13:30:35] Checkpoint Position: { 196.697006, 168.154296, 1003.153320 }
[13:30:35] [Checkpoint Manager] Checkpoint created (33) at slot 66
[13:30:35] Checkpoint Position: { 288.862609, 166.924606, 1007.171875 }
[13:30:35] [Checkpoint Manager] Checkpoint created (34) at slot 67
[13:30:35] Checkpoint Position: { 238.662597, 138.689498, 1003.023376 }
[13:30:35] [Checkpoint Manager] Checkpoint created (35) at slot 68
[13:30:35] Checkpoint Position: { 2304.688232, -16.094499, 26.742200 }
[13:30:35] [Checkpoint Manager] Checkpoint created (36) at slot 69
[13:30:35] Checkpoint Position: { 2304.688232, -16.094499, 26.742200 }
[13:30:35] [Checkpoint Manager] Checkpoint created (37) at slot 70
[13:30:35] Checkpoint Position: { 2304.688232, -16.094499, 26.742200 }
[13:30:35] [Checkpoint Manager] Checkpoint created (3 at slot 71
[13:30:35] Checkpoint Position: { 2304.688232, -16.094499, 26.742200 }
[13:30:35] [Checkpoint Manager] Checkpoint created (39) at slot 72
[13:30:35] Checkpoint Position: { 1133.132080, -15.829600, 1000.679687 }
[13:30:35] [Checkpoint Manager] Checkpoint created (40) at slot 73
[13:30:35] Checkpoint Position: { 1133.132080, -15.829600, 1000.679687 }
[13:30:35] [Checkpoint Manager] Checkpoint created (41) at slot 74
[13:30:35] Checkpoint Position: { 1133.132080, -15.829600, 1000.679687 }
[13:30:35] [Checkpoint Manager] Checkpoint created (42) at slot 75
[13:30:35] Checkpoint Position: { 2234.010986, 1714.684692, 1012.382812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (43) at slot 76
[13:30:35] Checkpoint Position: { 2019.067260, 1017.847412, 996.875000 }
[13:30:35] [Checkpoint Manager] Checkpoint created (44) at slot 77
[13:30:35] Checkpoint Position: { 285.847412, -86.774101, 1001.522888 }
[13:30:35] [Checkpoint Manager] Checkpoint created (45) at slot 78
[13:30:35] Checkpoint Position: { 285.847412, -86.774101, 1001.522888 }
[13:30:35] [Checkpoint Manager] Checkpoint created (46) at slot 79
[13:30:35] Checkpoint Position: { 285.847412, -86.774101, 1001.522888 }
[13:30:35] [Checkpoint Manager] Checkpoint created (47) at slot 80
[13:30:35] Checkpoint Position: { 285.847412, -86.774101, 1001.522888 }
[13:30:35] [Checkpoint Manager] Checkpoint created (4 at slot 81
[13:30:35] Checkpoint Position: { 285.847412, -86.774101, 1001.522888 }
[13:30:35] [Checkpoint Manager] Checkpoint created (92) at slot 82
[13:30:35] Checkpoint Position: { 285.847412, -86.774101, 1001.522888 }
[13:30:35] [Checkpoint Manager] Checkpoint created (49) at slot 83
[13:30:35] Checkpoint Position: { 390.768310, 173.787292, 1008.382812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (50) at slot 84
[13:30:35] Checkpoint Position: { 362.873291, -75.168701, 1001.507812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (51) at slot 85
[13:30:35] Checkpoint Position: { 362.873291, -75.168701, 1001.507812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (52) at slot 86
[13:30:35] Checkpoint Position: { 362.873291, -75.168701, 1001.507812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (53) at slot 87
[13:30:35] Checkpoint Position: { 364.900695, -11.767200, 1001.851623 }
[13:30:35] [Checkpoint Manager] Checkpoint created (54) at slot 88
[13:30:35] Checkpoint Position: { 364.900695, -11.767200, 1001.851623 }
[13:30:35] [Checkpoint Manager] Checkpoint created (100) at slot 89
[13:30:35] Checkpoint Position: { 364.900695, -11.767200, 1001.851623 }
[13:30:35] [Checkpoint Manager] Checkpoint created (55) at slot 90
[13:30:35] Checkpoint Position: { 362.873291, -75.168701, 1001.507812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (9 at slot 91
[13:30:35] Checkpoint Position: { 362.873291, -75.168701, 1001.507812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (56) at slot 92
[13:30:35] Checkpoint Position: { -25.842399, -188.250503, 1003.546875 }
[13:30:35] [Checkpoint Manager] Checkpoint created (57) at slot 93
[13:30:35] Checkpoint Position: { -25.842399, -188.250503, 1003.546875 }
[13:30:35] [Checkpoint Manager] Checkpoint created (5 at slot 94
[13:30:35] Checkpoint Position: { -25.842399, -188.250503, 1003.546875 }
[13:30:35] [Checkpoint Manager] Checkpoint created (95) at slot 95
[13:30:35] Checkpoint Position: { -25.842399, -188.250503, 1003.546875 }
[13:30:35] [Checkpoint Manager] Checkpoint created (59) at slot 96
[13:30:35] Checkpoint Position: { 372.260192, -133.519699, 1001.492187 }
[13:30:35] [Checkpoint Manager] Checkpoint created (86) at slot 97
[13:30:35] Checkpoint Position: { 1607.332885, 1816.765991, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (87) at slot 98
[13:30:35] Checkpoint Position: { 197.063796, 177.487106, 1003.023376 }
[13:30:35] [Checkpoint Manager] Checkpoint created (124) at slot 99
[13:30:35] Checkpoint Position: { 192.780105, 177.486495, 1003.153320 }
[13:30:35] [Checkpoint Manager] Checkpoint created (125) at slot 100
[13:30:35] Checkpoint Position: { 188.532501, 177.486495, 1003.153320 }
[13:30:35] [Checkpoint Manager] Checkpoint created (126) at slot 101
[13:30:35] Checkpoint Position: { 196.932601, 159.885696, 1003.153320 }
[13:30:35] [Checkpoint Manager] Checkpoint created (127) at slot 102
[13:30:35] Checkpoint Position: { 192.679000, 159.886306, 1003.153320 }
[13:30:35] [Checkpoint Manager] Checkpoint created (12 at slot 103
[13:30:35] Checkpoint Position: { 188.444396, 159.886199, 1003.153320 }
[13:30:35] [Checkpoint Manager] Checkpoint created (8 at slot 104
[13:30:35] Checkpoint Position: { 2311.274169, 2324.234863, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (89) at slot 105
[13:30:35] Checkpoint Position: { 493.336395, -24.830900, 1000.679687 }
[13:30:35] [Checkpoint Manager] Checkpoint created (90) at slot 106
[13:30:35] Checkpoint Position: { 499.967498, -20.694400, 1000.679687 }
[13:30:35] [Checkpoint Manager] Checkpoint created (10 at slot 107
[13:30:35] Checkpoint Position: { 1968.769287, 2295.873046, 16.455900 }
[13:30:35] [Checkpoint Manager] Checkpoint created (110) at slot 108
[13:30:35] Checkpoint Position: { 773.876708, -78.822799, 1000.662780 }
[13:30:35] [Checkpoint Manager] Checkpoint created (111) at slot 109
[13:30:35] Checkpoint Position: { 766.771789, -59.715900, 1000.656311 }
[13:30:35] [Checkpoint Manager] Checkpoint created (112) at slot 110
[13:30:35] Checkpoint Position: { 768.759521, -72.736297, 1000.656311 }
[13:30:35] [Checkpoint Manager] Checkpoint created (103) at slot 111
[13:30:35] Checkpoint Position: { 2447.669189, 2376.255615, 12.163499 }
[13:30:35] [Checkpoint Manager] Checkpoint created (104) at slot 112
[13:30:35] Checkpoint Position: { 2487.754150, 2397.235595, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (105) at slot 113
[13:30:35] Checkpoint Position: { 246.806198, 62.322799, 1003.640625 }
[13:30:35] [Checkpoint Manager] Checkpoint created (107) at slot 114
[13:30:35] Checkpoint Position: { 250.056106, 69.420303, 1003.640625 }
[13:30:35] [Checkpoint Manager] Checkpoint created (106) at slot 115
[13:30:35] Checkpoint Position: { 242.248596, 66.310798, 1003.640625 }
[13:30:35] [Checkpoint Manager] Checkpoint created (113) at slot 116
[13:30:35] Checkpoint Position: { 1735.743164, 1866.151611, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (114) at slot 117
[13:30:35] Checkpoint Position: { 966.246887, 2160.683593, 10.820300 }
[13:30:35] [Checkpoint Manager] Checkpoint created (115) at slot 118
[13:30:35] Checkpoint Position: { -2488.520507, 2295.313476, 4.984399 }
[13:30:35] [Checkpoint Manager] Checkpoint created (116) at slot 119
[13:30:35] Checkpoint Position: { 2375.578613, 2306.304443, 8.140600 }
[13:30:35] [Checkpoint Manager] Checkpoint created (117) at slot 120
[13:30:35] Checkpoint Position: { -2027.000000, -104.099998, 1034.800048 }
[13:30:35] [Checkpoint Manager] Checkpoint created (11 at slot 121
[13:30:35] Checkpoint Position: { -2032.790039, -117.389999, 1034.800048 }
[13:30:35] [Checkpoint Manager] Checkpoint created (119) at slot 122
[13:30:35] Checkpoint Position: { 2147.012695, 2425.325195, 65.277297 }
[13:30:35] [Checkpoint Manager] Checkpoint created (120) at slot 123
[13:30:35] Checkpoint Position: { 1672.548461, 1447.871215, 10.788100 }
[13:30:35] [Checkpoint Manager] Checkpoint created (121) at slot 124
[13:30:35] Checkpoint Position: { 937.084411, 1733.216796, 8.851599 }
[13:30:35] [Checkpoint Manager] Checkpoint created (122) at slot 125
[13:30:35] Checkpoint Position: { 246.417495, 107.298301, 1003.218811 }
[13:30:35] [Checkpoint Manager] Checkpoint created (123) at slot 126
[13:30:35] Checkpoint Position: { 246.446701, 118.537399, 1003.218811 }
[13:30:35] [Checkpoint Manager] Checkpoint created (129) at slot 127
[13:30:35] Checkpoint Position: { 2305.996582, 2377.820312, 11.220800 }
[13:30:35] [Checkpoint Manager] Checkpoint created (130) at slot 128
[13:30:35] Checkpoint Position: { 501.953613, -67.564903, 998.757812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (131) at slot 129
[13:30:35] Checkpoint Position: { 496.477111, -76.037803, 998.757812 }
[13:30:35] [Checkpoint Manager] Checkpoint created (132) at slot 130
[13:30:35] Checkpoint Position: { 2364.895507, 2377.616943, 10.820300 }
[13:30:35] Could Not Read Interiors file ( properties/interiors.txt )
[13:30:35] Reading File: blank
[13:30:35] Reading File: properties/houses.txt
[13:30:35] Reading File: properties/businesses.txt
[13:30:35] Reading File: properties/banks.txt
[13:30:35] Reading File: properties/police.txt
[13:30:35] [----------------------------------------]
[13:30:35] [--------- Gamemode: NVCNR v2.3 ---------]
[13:30:35] [-------- Owner/Developer: Weponz -------]
[13:30:35] [-- Copyright: Weponz Inc. © 2010-2012 --]
[13:30:35] [----------------------------------------]
[13:30:35] Number of vehicle models: 69
[13:30:35] Incoming connection: 127.0.0.1:49153
[13:30:35] [npc:join] Elvis has joined the server (0:127.0.0.1)
[13:30:59] Incoming connection: 25.206.3.102:65266
[13:30:59] [join] Assassin101_XXX has joined the server (1:25.206.3.102)
[13:31:07] [part] Assassin101_XXX has left the server (1:2)
Reply
#7

OnPlayerSpawn:



public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) { SetPlayerColor(playerid, WHITE); SetPlayerSkin(playerid, 84); }

PreloadAnimationLibrary(playerid, "GRAVEYARD");
PreloadAnimationLibrary(playerid, "RAPPING");
PreloadAnimationLibrary(playerid, "PED");
PreloadAnimationLibrary(playerid, "FOOD");
PreloadAnimationLibrary(playerid, "SWEET");
PreloadAnimationLibrary(playerid, "ON_LOOKERS");
PreloadAnimationLibrary(playerid, "DEALER");
PreloadAnimationLibrary(playerid, "CRACK");
PreloadAnimationLibrary(playerid, "SMOKING");
PreloadAnimationLibrary(playerid, "BEACH");
PreloadAnimationLibrary(playerid, "PARK");

verifydestroycar{playerid} = 0;

LoadFightStyle(playerid);

StartCheckpointSeeking();

HasSpawned{playerid} = true;
HasShieldAttached{playerid} = true;
HasBandanaAttached{playerid} = false;
IsPlayerUsingAnim{playerid} = false;

ClearAnimations(playerid);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);

IsInGod{playerid} = 0;
IsInGodCar{playerid} = 0;

/*if(GetPVarInt(playerid, "FirstSpawn") == 0)
{
SetTimerEx("HouseSpawning", 1000, false, "i", playerid);
}*/

if(IsAdminSpectating{playerid} == true)
{
IsAdminSpectating{playerid} = false;
SpecInfo[playerid][IsSpectating] = -1;
}

if(HasPlayerDiedInJail{playerid} == true && GetTeam{playerid} == CLASS_CIV)
{
SendPlayerToJail(playerid);
return 1;
}

if(HasPlayerDiedInCage{playerid} == true && CageTime[playerid] > 0)
{
new time = CageTime[playerid];
IsPlayersFirstSpawn{playerid} = false;
ResetPlayerWeapons(playerid);
SetPlayerWantedLevel(playerid, 0);
SetPlayerPos(playerid, 2178.3713, 2407.2861, 73.0339);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
IsCaged{playerid} = true;
SetPlayerArmour(playerid, 0);
GameTextForPlayer(playerid,"~r~Caged!", 5000, 5);
if(CageTime[playerid] > 0)
{
CageTime[playerid] = 0;
}
CageTime[playerid] = time;
KillTimer(JailTimer[playerid]);
KillTimer(CageTimer[playerid]);
CageTimer[playerid] = SetTimerEx("AutoUncage", 1000, true, "%d", playerid);
return 1;
}

if(IsPlayersFirstSpawn{playerid} == true)
{
SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);

SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWanted]);

ResetPlayerWeapons(playerid);

GivePlayerWeapon(playerid, GunInfo[playerid][gSlot0_gun], GunInfo[playerid][gSlot0_ammo]);
GivePlayerWeapon(playerid, GunInfo[playerid][gSlot1_gun], GunInfo[playerid][gSlot1_ammo]);
GivePlayerWeapon(playerid, GunInfo[playerid][gSlot2_gun], GunInfo[playerid][gSlot2_ammo]);
GivePlayerWeapon(playerid, GunInfo[playerid][gSlot3_gun], GunInfo[playerid][gSlot3_ammo]);
GivePlayerWeapon(playerid, GunInfo[playerid][gSlot4_gun], GunInfo[playerid][gSlot4_ammo]);
GivePlayerWeapon(playerid, GunInfo[playerid][gSlot5_gun], GunInfo[playerid][gSlot5_ammo]);
GivePlayerWeapon(playerid, GunInfo[playerid][gSlot6_gun], GunInfo[playerid][gSlot6_ammo]);
GivePlayerWeapon(playerid, GunInfo[playerid][gSlot7_gun], GunInfo[playerid][gSlot7_ammo]);
GivePlayerWeapon(playerid, GunInfo[playerid][gSlot8_gun], GunInfo[playerid][gSlot8_ammo]);
GivePlayerWeapon(playerid, GunInfo[playerid][gSlot9_gun], GunInfo[playerid][gSlot9_ammo]);
GivePlayerWeapon(playerid, GunInfo[playerid][gSlot10_gun], GunInfo[playerid][gSlot10_ammo]);
GivePlayerWeapon(playerid, GunInfo[playerid][gSlot11_gun], GunInfo[playerid][gSlot11_ammo]);
GivePlayerWeapon(playerid, GunInfo[playerid][gSlot12_gun], GunInfo[playerid][gSlot12_ammo]);

SetPlayerPos(playerid, PosInfo[playerid][rPos_X], PosInfo[playerid][rPos_Y], PosInfo[playerid][rPos_Z]);
SetPlayerFacingAngle(playerid, PosInfo[playerid][rPos_A]);
SetPlayerInterior(playerid, PosInfo[playerid][rInterior]);
SetPlayerVirtualWorld(playerid, PosInfo[playerid][rWorld]);
}

if(IsPlayersFirstSpawn{playerid} == true)
{
if(PlayerInfo[playerid][cTime] > 0)
{
new time = PlayerInfo[playerid][cTime];
IsPlayersFirstSpawn{playerid} = false;
ResetPlayerWeapons(playerid);
SetPlayerWantedLevel(playerid, 0);
SetPlayerPos(playerid, 2178.3713, 2407.2861, 73.0339);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
IsCaged{playerid} = true;
SetPlayerArmour(playerid, 0);
GameTextForPlayer(playerid,"~r~Caged!", 5000, 5);
if(CageTime[playerid] > 0)
{
CageTime[playerid] = 0;
}
CageTime[playerid] = time;
KillTimer(JailTimer[playerid]);
KillTimer(CageTimer[playerid]);
CageTimer[playerid] = SetTimerEx("AutoUncage", 1000, true, "%d", playerid);
}
return 1;
}

//
if(IsPlayersFirstSpawn{playerid} == true && GetTeam{playerid} == CLASS_CIV && PlayerInfo[playerid][jTime] > 0)
{
IsPlayersFirstSpawn{playerid} = false;
new cell = random(6);
if(cell == 0)
{
new time = PlayerInfo[playerid][jTime];
new inmateid = random(100000) + random(123456);
InMateID[playerid] = inmateid;
IsJailed{playerid} = true;
IsInCell{playerid} = 1;//
GoToJail{playerid} = false;
JailTime[playerid] = time;
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 0.0);
SetPlayerColor(playerid, WHITE);
SetPlayerWantedLevel(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid, 198.0651, 176.7253, 1003.0234);//
SetPlayerFacingAngle(playerid, 359.424;//
TogglePlayerControllable(playerid, true);
HasBeenArrested{playerid} = false;
new string[150];
format(string, sizeof(string), "Welcome to NVPD jail cell (1), you have been incarcerated for %d seconds.", time);
SendClientMessage(playerid, RED, string);
SendClientMessage(playerid, WHITE, "Try /(esc)ape or get someone to /break or /bail you out.");
KillTimer(JailTimer[playerid]);
JailTimer[playerid] = SetTimerEx("AutoUnjail", 1000, true, "%d", playerid);
return 1;
}
else if(cell == 1)
{
new time = PlayerInfo[playerid][jTime];
new inmateid = random(100000) + random(123456);
InMateID[playerid] = inmateid;
IsJailed{playerid} = true;
IsInCell{playerid} = 2;//
GoToJail{playerid} = false;
JailTime[playerid] = time;
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 0.0);
SetPlayerColor(playerid, WHITE);
SetPlayerWantedLevel(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid, 193.8369, 176.7251, 1003.0234);//
SetPlayerFacingAngle(playerid, 0.6781);//
TogglePlayerControllable(playerid, true);
HasBeenArrested{playerid} = false;
new string[150];
format(string, sizeof(string), "Welcome to NVPD jail cell (2), you have been incarcerated for %d seconds.", time);
SendClientMessage(playerid, RED, string);
SendClientMessage(playerid, WHITE, "Try /(esc)ape or get someone to /break or /bail you out.");
KillTimer(JailTimer[playerid]);
JailTimer[playerid] = SetTimerEx("AutoUnjail", 1000, true, "%d", playerid);
return 1;
}
else if(cell == 2)
{
new time = PlayerInfo[playerid][jTime];
new inmateid = random(100000) + random(123456);
InMateID[playerid] = inmateid;
IsJailed{playerid} = true;
IsInCell{playerid} = 3;//
GoToJail{playerid} = false;
JailTime[playerid] = time;
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 0.0);
SetPlayerColor(playerid, WHITE);
SetPlayerWantedLevel(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid, 189.5884, 176.7243, 1003.1533);//
SetPlayerFacingAngle(playerid, 357.5681);//
TogglePlayerControllable(playerid, true);
HasBeenArrested{playerid} = false;
new string[150];
format(string, sizeof(string), "Welcome to NVPD jail cell (3), you have been incarcerated for %d seconds.", time);
SendClientMessage(playerid, RED, string);
SendClientMessage(playerid, WHITE, "Try /(esc)ape or get someone to /break or /bail you out.");
KillTimer(JailTimer[playerid]);
JailTimer[playerid] = SetTimerEx("AutoUnjail", 1000, true, "%d", playerid);
return 1;
}
else if(cell == 3)
{
new time = PlayerInfo[playerid][jTime];
new inmateid = random(100000) + random(123456);
InMateID[playerid] = inmateid;
IsJailed{playerid} = true;
IsInCell{playerid} = 4;//
GoToJail{playerid} = false;
JailTime[playerid] = time;
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 0.0);
SetPlayerColor(playerid, WHITE);
SetPlayerWantedLevel(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid, 198.0573, 160.6476, 1003.1533);//
SetPlayerFacingAngle(playerid, 178.6532);//
TogglePlayerControllable(playerid, true);
HasBeenArrested{playerid} = false;
new string[150];
format(string, sizeof(string), "Welcome to NVPD jail cell (4), you have been incarcerated for %d seconds.", time);
SendClientMessage(playerid, RED, string);
SendClientMessage(playerid, WHITE, "Try /(esc)ape or get someone to /break or /bail you out.");
KillTimer(JailTimer[playerid]);
JailTimer[playerid] = SetTimerEx("AutoUnjail", 1000, true, "%d", playerid);
return 1;
}
else if(cell == 4)
{
new time = PlayerInfo[playerid][jTime];
new inmateid = random(100000) + random(123456);
InMateID[playerid] = inmateid;
IsJailed{playerid} = true;
IsInCell{playerid} = 5;//
GoToJail{playerid} = false;
JailTime[playerid] = time;
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 0.0);
SetPlayerColor(playerid, WHITE);
SetPlayerWantedLevel(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid, 193.8127, 160.6480, 1003.1533);//
SetPlayerFacingAngle(playerid, 178.0266);//
TogglePlayerControllable(playerid, true);
HasBeenArrested{playerid} = false;
new string[150];
format(string, sizeof(string), "Welcome to NVPD jail cell (5), you have been incarcerated for %d seconds.", time);
SendClientMessage(playerid, RED, string);
SendClientMessage(playerid, WHITE, "Try /(esc)ape or get someone to /break or /bail you out.");
KillTimer(JailTimer[playerid]);
JailTimer[playerid] = SetTimerEx("AutoUnjail", 1000, true, "%d", playerid);
return 1;
}
else if(cell == 5)
{
new time = PlayerInfo[playerid][jTime];
new inmateid = random(100000) + random(123456);
InMateID[playerid] = inmateid;
IsJailed{playerid} = true;
IsInCell{playerid} = 6;//
GoToJail{playerid} = false;
JailTime[playerid] = time;
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 0.0);
SetPlayerColor(playerid, WHITE);
SetPlayerWantedLevel(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid, 189.5607, 160.6474, 1003.1533);//
SetPlayerFacingAngle(playerid, 180.1966);//
TogglePlayerControllable(playerid, true);
HasBeenArrested{playerid} = false;
new string[150];
format(string, sizeof(string), "Welcome to NVPD jail cell (6), you have been incarcerated for %d seconds.", time);
SendClientMessage(playerid, RED, string);
SendClientMessage(playerid, WHITE, "Try /(esc)ape or get someone to /break or /bail you out.");
KillTimer(JailTimer[playerid]);
JailTimer[playerid] = SetTimerEx("AutoUnjail", 1000, true, "%d", playerid);
}
return 1;
}
//

if(GoToJail{playerid} == true && GetTeam{playerid} == CLASS_CIV)
{
SendPlayerToJail(playerid);
return 1;
}
if(HasDied{playerid} == true)
{
new rand = random(sizeof(MedicSpawns));
SetPlayerPos(playerid, MedicSpawns[rand][0], MedicSpawns[rand][1], MedicSpawns[rand][2]);
SetPlayerFacingAngle(playerid, MedicSpawns[rand][3]);
HasDied{playerid} = false;
if(GetTeam{playerid} == CLASS_COPS)
{
SetPlayerWantedLevel(playerid, 0);
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
}
else if(GetTeam{playerid} == CLASS_CIA)
{
SetPlayerWantedLevel(playerid, 0);
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
}
else if(GetTeam{playerid} == CLASS_FBI)
{
SetPlayerWantedLevel(playerid, 0);
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
}
else if(GetTeam{playerid} == CLASS_ARMY)
{
SetPlayerWantedLevel(playerid, 0);
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
}
else if(GetTeam{playerid} == CLASS_MEDIC)
{
SetPlayerWantedLevel(playerid, 0);
ResetPlayerWeapons(playerid);
}
else if(GetTeam{playerid} == CLASS_CIV)
{
SetPlayerWantedLevel(playerid, 0);
if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);
}
}
if(GetTeam{playerid} == CLASS_COPS)
{
ShowPlayerDialog(playerid, COP_MSG, DIALOG_STYLE_MSGBOX , "{FFFFFF}New Vegas Police",
"{FFFFFF}Your a police officer, your job is to arrest(/ar) and takedown\nwanted criminals(/pc) and ticket(/tk) suspect civilians(/pc).\nYou can also /taze(/tz) and /cuff(/cf) wanted criminals and you\ncan /bail out prisoners or take a /bribe from wanted criminals.\nUse /c [msg] for [Cop Radio]\n\nUse /faqs for the list of frequently asked questions and /cmds\nfor a list of available commands. Use /askadmin for admin help\nor use /n for helper assistance.", "Ok", "");
}
else if(GetTeam{playerid} == CLASS_CIA)
{
ShowPlayerDialog(playerid, CIA_MSG, DIALOG_STYLE_MSGBOX , "{FFFFFF}New Vegas CIA",
"{FFFFFF}Your a undercover cia agent, your job is to focus on and takedown\nmost wanted criminals(/pc) undetected using your stealth tactics.\nYou can also /taze(/tz) and /cuff(/cf) wanted criminals and you\ncan /bail out prisoners or take a /bribe from wanted criminals.\nUse /c [msg] for [Cop Radio]\n\nUse /faqs for the list of frequently asked questions and /cmds\nfor a list of available commands. Use /askadmin for admin help\nor use /n for helper assistance.", "Ok", "");
}
else if(GetTeam{playerid} == CLASS_FBI)
{
ShowPlayerDialog(playerid, FBI_MSG, DIALOG_STYLE_MSGBOX , "{FFFFFF}New Vegas FBI",
"{FFFFFF}Your a undercover fbi agent, your job is to focus on and takedown\nmost wanted criminals(/pc) undetected using your stealth tactics.\nYou can also /taze(/tz) and /cuff(/cf) wanted criminals and you\ncan /bail out prisoners or take a /bribe from wanted criminals.\nUse /c [msg] for [Cop Radio]\n\nUse /faqs for the list of frequently asked questions and /cmds\nfor a list of available commands. Use /askadmin for admin help\nor use /n for helper assistance.", "Ok", "");
}
else if(GetTeam{playerid} == CLASS_CIV)
{
ShowPlayerDialog(playerid, CIV_MSG, DIALOG_STYLE_MSGBOX , "{FFFFFF}Civilian",
"{FFFFFF}Your a civilian(robber), your job is to rob players, casinos,\nbanks, stores and businesses while trying to avoid arrest from\nlaw enforcement. If you get arrested or taken down you are then\nsent to jail for 3-4 mins, which you can either /escape or get a\nfriend to /break or /bail you out.\n\nUse /faqs for the list of frequently asked questions and /cmds\nfor a list of available commands. Use /askadmin for admin help\nor use /n for helper assistance.", "Ok", "");
}
else if(GetTeam{playerid} == CLASS_MEDIC)
{
ShowPlayerDialog(playerid, MEDIC_MSG, DIALOG_STYLE_MSGBOX , "{FFFFFF}Medic",
"{FFFFFF}Your a medic, your job is to assist members of New Vegas with\ninjuries using /medic, they can also /callmedic to call for help.\nUse /m [msg] for [Medic Radio]\n\nUse /faqs for the list of frequently asked questions and /cmds\nfor a list of available commands. Use /askadmin for admin help\nor use /n for helper assistance.", "Ok", "");
}
else if(GetTeam{playerid} == CLASS_ARMY)
{
ShowPlayerDialog(playerid, ARMY_MSG, DIALOG_STYLE_MSGBOX , "{FFFFFF}New Vegas Army",
"{FFFFFF}Your a army soldier, your job is to focus on and takedown most\nwanted criminals(/pc) at all costs using army supplied vehicles.\nYou can also /taze(/tz) and /cuff(/cf) wanted criminals and you\ncan /bail out prisoners or take a /bribe from wanted criminals.\nUse /c [msg] for [Cop Radio]\n\nUse /faqs for the list of frequently asked questions and /cmds\nfor a list of available commands. Use /askadmin for admin help\nor use /n for helper assistance.", "Ok", "");
}
if(HasDied{playerid} == false && GetTeam{playerid} == CLASS_COPS)
{
SetPlayerWantedLevel(playerid, 0);
SetPlayerColor(playerid,BLUE);
new rand = random(sizeof(CopSpawns));
SetPlayerPos(playerid, CopSpawns[rand][0], CopSpawns[rand][1], CopSpawns[rand][2]);
SetPlayerFacingAngle(playerid, CopSpawns[rand][3]);
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
}
else if(HasDied{playerid} == false && GetTeam{playerid} == CLASS_CIA)
{
SetPlayerWantedLevel(playerid, 0);
SetPlayerColor(playerid, WHITE);
new rand = random(sizeof(CIASpawns));
SetPlayerPos(playerid, CIASpawns[rand][0], CIASpawns[rand][1], CIASpawns[rand][2]);
SetPlayerFacingAngle(playerid, CIASpawns[rand][3]);
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
}
else if(HasDied{playerid} == false && GetTeam{playerid} == CLASS_FBI)
{
SetPlayerWantedLevel(playerid, 0);
SetPlayerColor(playerid, WHITE);
new rand = random(sizeof(FBISpawns));
SetPlayerPos(playerid, FBISpawns[rand][0] + 2.0, FBISpawns[rand][1], FBISpawns[rand][2]);
SetPlayerFacingAngle(playerid, FBISpawns[rand][3]);
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
}
else if(HasDied{playerid} == false && GetTeam{playerid} == CLASS_CIV)
{
SetPlayerColor(playerid,WHITE);
new rand = random(sizeof(CivSpawns));
SetPlayerPos(playerid, CivSpawns[rand][0], CivSpawns[rand][1], CivSpawns[rand][2]);
SetPlayerFacingAngle(playerid, CivSpawns[rand][3]);
}
else if(HasDied{playerid} == false && GetTeam{playerid} == CLASS_MEDIC)
{
SetPlayerWantedLevel(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,PINK);
new rand = random(sizeof(MedicSpawns));
SetPlayerPos(playerid, MedicSpawns[rand][0], MedicSpawns[rand][1], MedicSpawns[rand][2]);
SetPlayerFacingAngle(playerid, MedicSpawns[rand][3]);
}
else if(HasDied{playerid} == false && GetTeam{playerid} == CLASS_ARMY)
{
SetPlayerWantedLevel(playerid, 0);
SetPlayerColor(playerid,GREEN);
new rand = random(sizeof(ArmySpawns));
SetPlayerPos(playerid, ArmySpawns[rand][0], ArmySpawns[rand][1], ArmySpawns[rand][2]);
SetPlayerFacingAngle(playerid, ArmySpawns[rand][3]);
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
SetPlayerAttachedObject(playerid, 1 , 18637, 1, 0, -0.1, 0.18, 90, 0, 272, 1, 1, 1);
}

if(IsUnfairDeath{playerid} == true)
{
IsUnfairDeath{playerid} = false;
GameTextForPlayer(playerid, "~g~Unfair ~r~Death.",3000,5);
SendClientMessage(playerid, YELLOW, "Unfair death. Continuing current life...");
}

if(IsPlayerConnected(playerid) && IsLoggedIn{playerid} == 1)
{
SaveBankStats(playerid);
SaveFightStats(playerid);
SaveUserStats(playerid);
SaveDegreeStats(playerid);
}
IsPlayersFirstSpawn{playerid} = false;
return 1;
}
Reply
#8

Any ideas?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)