Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.41 KB | None | 0 0
  1. elseif cmdtext == "/woda" then
  2.         if Player[playerid].grupa == 2 then
  3.             local x,y,z = GetPlayerPos(playerid);
  4.             if x > 31290 and x < 4128 and z > 6083 and z < 21695 then
  5.                 SetPlayerPos(playerid,31290,4128,21695);
  6.                 SetPlayerAngle(playerid,149);
  7.                 local drop1 = random(1);
  8.                 if drop1 == 0 then
  9.                 SendPlayerMessage(playerid, 255,255,255,"Wiadomość");
  10.                 GiveItem(playerid, "ITAT_SHADOWFUR", 1)
  11.                 elseif drop1 == 1 then
  12.                 SendPlayerMessage(playerid, 255,255,255,"Wiadomość");
  13.                 GiveItem(playerid, "ITAT_SHADOWFUR", 1)
  14.             else
  15.                 GameTextForPlayer(playerid,2500,4000,"W tym miejscu nie ma wejścia na wieżę.","Font_Old_10_White_Hi.TGA",255,176,97,3000);
  16.             end
  17.         else
  18.             GameTextForPlayer(playerid,2500,4000,"Bez właściwego klucza nigdy tego nie otworzę.","Font_Old_10_White_Hi.TGA",255,176,97,3000);
  19.         end
  20.     elseif cmdtext == "/wieza zejdz" then
  21.         if Player[playerid].grupa == 2 then
  22.             local x,y,z = GetPlayerPos(playerid);
  23.             if x > 10161 and x < 10460 and z > 5965 and z < 6237 then
  24.                 SetPlayerPos(playerid,9817,365,6276);
  25.                 SetPlayerAngle(playerid,237);
  26.             else
  27.                 GameTextForPlayer(playerid,2500,4000,"W tym miejscu nie ma zejścia z wieży.","Font_Old_10_White_Hi.TGA",255,176,97,3000);
  28.             end
  29.         else
  30.             GameTextForPlayer(playerid,2500,4000,"Bez właściwego klucza nigdy tego nie otworzę.","Font_Old_10_White_Hi.TGA",255,176,97,3000);
  31.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement