Advertisement
Guest User

Untitled

a guest
Sep 29th, 2013
1,296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. CMD:duel(playerid, params[])
  2. {
  3. new id, id2, weapon;
  4. if(PlayerInfo[playerid][pAdmin] >=3)
  5. {
  6. if (sscanf(params, "uii", id, id2, weapon)) SendClientMessage(playerid, COLOR_GREY, "** [Usage]: /duel [playerid/name] [playerid/name] [Weapon]");
  7. else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: Player One not found");
  8. else if (id2 == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_LIGHTRED, "** [Error]: Player Two not found");
  9. else
  10. {
  11. SetPlayerPos(playerid, 1374.0948,5.5511,1008.1563);
  12. SetPlayerPos(id, 1413.1495,-15.9198,1000.9246);
  13. SetPlayerPos(id2, 1367.6084,-17.7317,1000.9219);
  14. SetPlayerHealth(id, 100);
  15. SetPlayerHealth(id2, 100);
  16. SetPlayerArmour(id, 100);
  17. SetPlayerArmour(id2, 100);
  18. ResetPlayerWeapons(id);
  19. ResetPlayerWeapons(id2);
  20. GivePlayerAdminGun(id, weapon);
  21. GivePlayerAdminGun(id2, weapon);
  22. GameTextForPlayer(id, "~r~DUEL ON", 2000, 4);
  23. GameTextForPlayer(id2, "~r~DUEL ON", 2000, 4);
  24. SetPlayerInterior(id, 1);
  25. SetPlayerInterior(id2, 1);
  26. SetPlayerInterior(playerid, 1);
  27. SetPlayerVirtualWorld(playerid, 0);
  28. SetPlayerVirtualWorld(id, 0);
  29. SetPlayerVirtualWorld(id2, 0);
  30. Duel[id] = 1;
  31. Duel[id2] = 1;
  32. return 1;
  33. }
  34. return 1;
  35. }
  36. else
  37. {
  38. SendClientMessage(playerid, COLOR_LIGHTRED, "** [Warning]: You are NOT a Level 3+ admin");
  39. return 1;
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement