Advertisement
KaLu17

[pawno.pl] -> #25609, Time

Apr 21st, 2014
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.86 KB | None | 0 0
  1. CMD:podnies(playerid, params[])
  2. {+
  3.         if(!IsPlayerInRangeOfPoint(playerid, 3.0, 219.150939, 1831.369873, 6.564657))
  4.         {
  5.                 SendClientMessage(playerid, 0xFFFFFFFF, "Nie masz w pobliżu żadnych rzeczy do podniesienia!");
  6.                 return 1;
  7.         }
  8.     if(GetPVarInt(playerid, "samp_PackTime") > gettime())
  9.         {
  10.                 SendClientMessage(playerid, 0xFFFFFFFF, "Z paczki możesz skorzystać tylko raz na 20 minut.");
  11.                 return 1;
  12.         }
  13.         new string[128], name[30];
  14.         GetPlayerName(playerid, name, sizeof(name));
  15.         format(string, sizeof(string), "{F5DC0B}Gracz {0000FF}%s{F5DC0B} odnalazł jedną z paczek broni  ! {F5DC0B}({0000FF}UWAGA !{F5DC0B})   ", name);
  16.         SendClientMessageToAll(-1, string);
  17.  
  18.     SetPVarInt(playerid, "samp_PackTime", (20 * 60) + gettime());
  19.         return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement