daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3. if (strcmp("/DM", cmdtext, true, 10) == 0)
  4. {
  5. new rand = random(sizeof(DS));
  6. SetPlayerPos(playerid,DS[rand][0],DS[rand][1],DS[rand][2]);
  7.  ResetPlayerWeapons(playerid);
  8.  SetPlayerHealth(playerid, 100);
  9.  SetPlayerArmour(playerid, 100.00);
  10.  GivePlayerWeapon(playerid, 26, 9999);
  11.  GivePlayerWeapon(playerid, 16, 9999);
  12.  GivePlayerWeapon(playerid, 23, 9999);
  13.  GivePlayerWeapon(playerid, 31, 9999);
  14.  GivePlayerWeapon(playerid, 28, 9999);
  15.  GivePlayerWeapon(playerid, 34, 9999);
  16.  SetPlayerVirtualWorld(playerid,1);
  17.  InDM[playerid] = 1;
  18.  SendClientMessage(playerid,RED,"!ברוכים הבאים לאזור המלחמה");
  19.  }
  20.  else
  21.  {
  22.  SetPlayerPos(playerid,-1425.9429,465.7070,6.8920);
  23.  SendClientMessage(playerid,0xff0033ff,"יצאת מהמלחמה");
  24.  ResetPlayerWeapons(playerid);
  25.  SetPlayerVirtualWorld(playerid,0);
  26.  InDM[playerid] = 0;
  27.  }
  28. return 1;
  29. }
  30. if(InDM[playerid] == 1) return SendClientMessage(playerid,0xFF0000FF,"אתה חייב לצאת מהאיזור כדי להקיש פקודות.");
  31.                 return 0;
  32.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top