Advertisement
Guest User

Untitled

a guest
Nov 25th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. CMD:dm(playerid, params[])
  2. {
  3. new id;
  4. if(isnull(params)) return SendClientMessage(playerid, -1, "Deathmatch: /dm <1-5>"); // You can change it later
  5. id = strval(params);
  6.  
  7. if(InDM[playerid] == 1) return SendClientMessage(playerid, -1, "You are already in the Deathmatch");
  8.  
  9. switch(id)
  10. {
  11. case 1:
  12. {
  13. new rand1 = random(sizeof(DeathmatchLVPD));
  14. CreateDM(
  15. playerid, DeathmatchLVPD[rand1][0], DeathmatchLVPD[rand1][1], DeathmatchLVPD[rand1][2], DeathmatchLVPD[rand1][3], 100, 100, 24, 25, 3 , 0, 1); // 28 = Micro/UZI and 25 = Shotgun
  16. {
  17. case 2:
  18. {
  19. new rand1 = random(sizeof(DeathmatchJeffersonMotel));
  20. CreateDM(
  21. playerid, DeathmatchJeffersonMotel[rand1][0], DeathmatchJeffersonMotel[rand1][1], DeathmatchJeffersonMotel[rand1][2], DeathmatchJeffersonMotel[rand1][3], 100, 100, 24, 25, 15, 0, 1);
  22. }
  23. return 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement