View difference between Paste ID: gcdb5pGz and hq34yCuY
SHOW: | | - or go back to the newest paste.
1
// This is a comment
2
// uncomment the line below if you want to write a filterscript
3
//#define FILTERSCRIPT
4
5
#include <a_samp>
6
#include <zcmd>
7
#include <sscanf2>
8
//#pragma tabsize 0
9
new message[301];
10-
/*new Float:weaps[10][2]={
10+
11
new cn;
12-
    {22},
12+
13-
    {23},
13+
14-
    {24},
14+
new Float:Spawns[][]= {
15-
    {25},
15+
   {-2491.8706,-237.2221,39.3019,295.0867},
16-
    {26},
16+
   {-2482.0308,-283.6506,40.5421,180.7190},
17-
    {27},
17+
   {-2444.0479,-271.4679,35.6237,258.4264},
18-
    {28},
18+
   {-2490.9055,-298.6101,35.8574,172.5956},
19-
    {29},
19+
   {-2525.5771,-313.8878,39.0723,327.6012},
20-
    {31},
20+
   {-2554.4729,-291.1451,25.9594,118.0751}
21-
    {32}
21+
};
22-
}; */
22+
new weaps[][] = {
23
   {22},
24
   {23},
25
   {24},
26
   {25},
27
   {26},
28
   {27},
29
   {28},
30
   {29},
31
   {30},
32
   {31},
33
   {32}
34
};
35
36
37
38
#if defined FILTERSCRIPT
39
40
public OnFilterScriptInit()
41
{
42
	print("\n--------------------------------------");
43
	print(" Blank Filterscript by your name here");
44
	print("--------------------------------------\n");
45
	return 1;
46
}
47
48
public OnFilterScriptExit()
49
{
50
    //Player Classes
51
   AddPlayerClass(268,-2491.8706,-237.2221,39.3019,295.0867,0,0,0,0,0,0); // spawn1
52
   AddPlayerClass(268,-2482.0308,-283.6506,40.5421,180.7190,0,0,0,0,0,0); // spawn2
53
   AddPlayerClass(268,-2444.0479,-271.4679,35.6237,258.4264,0,0,0,0,0,0); // spawn3
54
   AddPlayerClass(268,-2490.9055,-298.6101,35.8574,172.5956,0,0,0,0,0,0); // spawn4
55
   AddPlayerClass(268,-2525.5771,-313.8878,39.0723,327.6012,0,0,0,0,0,0); // spawn5
56
   AddPlayerClass(268,-2554.4729,-291.1451,25.9594,118.0751,0,0,0,0,0,0); // spawn6
57
	return 1;
58
}
59
60
#else
61
62
main()
63
{
64
	print("\n----------------------------------");
65
	print(" Blank Gamemode by your name here");
66
	print("----------------------------------\n");
67
}
68
69
#endif
70
71
public OnGameModeInit()
72
{
73
	// Don't use these lines if it's a filterscript
74
	SetGameModeText("Blank Script");
75
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
76
	return 1;
77
}
78
79
public OnGameModeExit()
80
{
81
	return 1;
82
}
83
84
public OnPlayerRequestClass(playerid, classid)
85
{
86
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
87
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
88
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
89
	return 1;
90
}
91
92
public OnPlayerConnect(playerid)
93
{
94
	InDM[playerid] =0;
95
	Spawn[playerid] =0;
96
	return 1;
97
}
98
99-
   switch(Spawn[playerid])
99+
100
{
101
	InDM[playerid] =0;
102
	return 1;
103
}
104
105
public OnPlayerSpawn(playerid)
106
{
107
	return 1;
108
}
109
110
111
COMMAND:dm(playerid,params[])
112
{
113
 if(InDM[playerid] ==0)
114
 {
115
   InDM[playerid] =1;
116
   cn++;
117
   ResetPlayerWeapons(playerid);
118
   new r = random(50);
119
   SetPlayerSkin(playerid, r);
120
   new Random = random(sizeof(Spawns));
121
   SetPlayerPos(playerid, Spawns[Random][0],Spawns[Random][1],Spawns[Random][2]);
122
   SetPlayerFacingAngle(playerid, Spawns[Random][3]);
123-
  }
123+
   new Random1 = random(sizeof(weaps));
124
   GivePlayerWeapon(playerid, weaps[Random1][0], 150);
125
   
126
   /*switch(Spawn[playerid])
127
   {
128
      case 0:
129
	  {
130
	   GivePlayerWeapon(playerid, 24, 100);
131
       GivePlayerWeapon(playerid, 25, 100);
132
       GivePlayerWeapon(playerid, 26, 100);
133
       Spawn[playerid]++;
134
      }
135
      case 1:
136
	  {
137
	   GivePlayerWeapon(playerid, 27, 100);
138
	   GivePlayerWeapon(playerid, 28, 100);
139
       GivePlayerWeapon(playerid, 29, 100);
140
       Spawn[playerid]++;
141
      }
142
      case 2:
143
	  {
144
	   GivePlayerWeapon(playerid, 30, 100);
145
       GivePlayerWeapon(playerid, 31, 100);
146
       GivePlayerWeapon(playerid, 32, 100);
147
       Spawn[playerid]=0;  
148
      }
149
      
150
  } */
151
}
152
}
153
public OnPlayerDeath(playerid, killerid, reason)
154
{
155
	return 1;
156
}
157
158
public OnVehicleSpawn(vehicleid)
159
{
160
	return 1;
161
}
162
163
public OnVehicleDeath(vehicleid, killerid)
164
{
165
	return 1;
166
}
167
168
public OnPlayerText(playerid, text[])
169
{
170
	return 1;
171
}
172
173
public OnPlayerCommandText(playerid, cmdtext[])
174
{
175
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
176
	{
177
		// Do something here
178
		return 1;
179
	}
180
	return 0;
181
}
182
183
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
184
{
185
	return 1;
186
}
187
188
public OnPlayerExitVehicle(playerid, vehicleid)
189
{
190
	return 1;
191
}
192
193
public OnPlayerStateChange(playerid, newstate, oldstate)
194
{
195
	return 1;
196
}
197
198
public OnPlayerEnterCheckpoint(playerid)
199
{
200
	return 1;
201
}
202
203
public OnPlayerLeaveCheckpoint(playerid)
204
{
205
	return 1;
206
}
207
208
public OnPlayerEnterRaceCheckpoint(playerid)
209
{
210
	return 1;
211
}
212
213
public OnPlayerLeaveRaceCheckpoint(playerid)
214
{
215
	return 1;
216
}
217
218
public OnRconCommand(cmd[])
219
{
220
	return 1;
221
}
222
223
public OnPlayerRequestSpawn(playerid)
224
{
225
	return 1;
226
}
227
228
public OnObjectMoved(objectid)
229
{
230
	return 1;
231
}
232
233
public OnPlayerObjectMoved(playerid, objectid)
234
{
235
	return 1;
236
}
237
238
public OnPlayerPickUpPickup(playerid, pickupid)
239
{
240
	return 1;
241
}
242
243
public OnVehicleMod(playerid, vehicleid, componentid)
244
{
245
	return 1;
246
}
247
248
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
249
{
250
	return 1;
251
}
252
253
public OnVehicleRespray(playerid, vehicleid, color1, color2)
254
{
255
	return 1;
256
}
257
258
public OnPlayerSelectedMenuRow(playerid, row)
259
{
260
	return 1;
261
}
262
263
public OnPlayerExitedMenu(playerid)
264
{
265
	return 1;
266
}
267
268
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
269
{
270
	return 1;
271
}
272
273
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
274
{
275
	return 1;
276
}
277
278
public OnRconLoginAttempt(ip[], password[], success)
279
{
280
	return 1;
281
}
282
283
public OnPlayerUpdate(playerid)
284
{
285
	return 1;
286
}
287
288
public OnPlayerStreamIn(playerid, forplayerid)
289
{
290
	return 1;
291
}
292
293
public OnPlayerStreamOut(playerid, forplayerid)
294
{
295
	return 1;
296
}
297
298
public OnVehicleStreamIn(vehicleid, forplayerid)
299
{
300
	return 1;
301
}
302
303
public OnVehicleStreamOut(vehicleid, forplayerid)
304
{
305
	return 1;
306
}
307
308
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
309
{
310
	return 1;
311
}
312
313
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
314
{
315
	return 1;
316
}