DuskXtremeX

SAMP DeathMatch

Jul 23rd, 2014
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.26 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <sscanf2>
  4. //#pragma tabsize 0
  5. new message[301];
  6. new InDM[MAX_PLAYERS];
  7. new cn;
  8. new Spawn[MAX_PLAYERS];
  9.  
  10. /*new Float:weaps[10][2]={
  11.  
  12.     {22},
  13.     {23},
  14.     {24},
  15.     {25},
  16.     {26},
  17.     {27},
  18.     {28},
  19.     {29},
  20.     {31},
  21.     {32}
  22. }; */
  23.  
  24.  
  25. #if defined FILTERSCRIPT
  26.  
  27. public OnFilterScriptInit()
  28. {
  29.     print("\n--------------------------------------");
  30.     print(" Blank Filterscript by your name here");
  31.     print("--------------------------------------\n");
  32.     return 1;
  33. }
  34.  
  35. public OnFilterScriptExit()
  36. {
  37.     return 1;
  38. }
  39.  
  40. #else
  41.  
  42. main()
  43. {
  44.     print("\n----------------------------------");
  45.     print(" Blank Gamemode by your name here");
  46.     print("----------------------------------\n");
  47. }
  48.  
  49. #endif
  50.  
  51. public OnGameModeInit()
  52. {
  53.     // Don't use these lines if it's a filterscript
  54.     SetGameModeText("Blank Script");
  55.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  56.     return 1;
  57. }
  58.  
  59. public OnGameModeExit()
  60. {
  61.     return 1;
  62. }
  63.  
  64. public OnPlayerRequestClass(playerid, classid)
  65. {
  66.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  67.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  68.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  69.     return 1;
  70. }
  71.  
  72. public OnPlayerConnect(playerid)
  73. {
  74.     InDM[playerid] =0;
  75.     Spawn[playerid] =0;
  76.     return 1;
  77. }
  78.  
  79. public OnPlayerDisconnect(playerid, reason)
  80. {
  81.     InDM[playerid] =0;
  82.     return 1;
  83. }
  84.  
  85. public OnPlayerSpawn(playerid)
  86. {
  87.     return 1;
  88. }
  89.  
  90. COMMAND:dm(playerid,params[])
  91. {
  92.  if(InDM[playerid] ==0)
  93.  {
  94.    InDM[playerid] =1;
  95.    cn++;
  96.    ResetPlayerWeapons(playerid);
  97.    new r = random(50);
  98.    SetPlayerSkin(playerid, r);
  99.    switch(Spawn[playerid])
  100.    {
  101.       case 0:
  102.       {
  103.        GivePlayerWeapon(playerid, 24, 100);
  104.        GivePlayerWeapon(playerid, 25, 100);
  105.        GivePlayerWeapon(playerid, 26, 100);
  106.        Spawn[playerid]++;
  107.       }
  108.       case 1:
  109.       {
  110.        GivePlayerWeapon(playerid, 27, 100);
  111.        GivePlayerWeapon(playerid, 28, 100);
  112.        GivePlayerWeapon(playerid, 29, 100);
  113.        Spawn[playerid]++;
  114.       }
  115.       case 2:
  116.       {
  117.        GivePlayerWeapon(playerid, 30, 100);
  118.        GivePlayerWeapon(playerid, 31, 100);
  119.        GivePlayerWeapon(playerid, 32, 100);
  120.        Spawn[playerid]=0;  
  121.       }
  122.      
  123.   }
  124. }
  125. }
Advertisement
Add Comment
Please, Sign In to add comment