Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //SA-MP EXTREME TUDO PARA SEU SERVIDOR.
- //Todos os direitos reservados.
- #include <a_samp>
- forward PararDrop(number);
- new Armas[300];
- new ArmasID[] =
- {
- -1,
- 331,
- 333,
- 334,
- 335,
- 336,
- 337,
- 338,
- 339,
- 341,
- 321,
- 322,
- 323,
- 324,
- 325,
- 326,
- 342,
- 343,
- 344,
- -1,
- -1,
- -1,
- 346,
- 347,
- 348,
- 349,
- 350,
- 351,
- 352,
- 353,
- 355,
- 356,
- 372,
- 357,
- 358,
- 359,
- 360,
- 361,
- 362,
- 363,
- -1,
- 365,
- 366,
- 367,
- -1,
- -1,
- 371
- };
- public OnFilterScriptInit()
- {
- print("\n----------------------------------------");
- print(" Drop de armas. ");
- print(" visite www.sa-mpextreme.blogspot.com");
- print("----------------------------------------\n");
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- DropWeapons(playerid);
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- for(new i = 0; i <= 300; i ++)
- {
- if(Armas[i] == pickupid)
- {
- PararDrop(i);
- }}}
- public PararDrop(number)
- {
- DestroyPickup(Armas[number]);
- Armas[number] = -1;
- }
- stock DropWeapons(playerid)
- {
- new Armas[14], Balas[14];
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- for(new wep = 0; wep < 14; wep ++)
- {
- GetPlayerWeaponData(playerid, wep, Armas[wep], Balas[wep]);
- if(ArmasID[Armas[wep]] != -1)
- {
- new modelo = Armas[Armas[wep]];
- new randid = random(300);
- new Float:X2 = X + (random(3) - random(3));
- new Float:Y2 = Y + (random(3) - random(3));
- Armas[randid] = CreatePickup(modelo, 4, X2, Y2, Z);
- SetTimerEx("PararDrop", 25 * 1000, false, "d", randid);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment