Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.83 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new wejscie1;
  4.  
  5. #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  6.  
  7. public OnGameModeInit()
  8. {
  9.     wejscie1 = CreatePickup (1318,1, 1608.3970,1816.8823,10.8203);
  10.     return 1;
  11. }
  12.  
  13. public OnPlayerCommandText(playerid, cmdtext[])
  14. {
  15.     dcmd(placsf, 6, cmdtext);
  16.    
  17.     return 0;
  18. }
  19.  
  20. public OnPlayerPickUpPickup(playerid, pickupid)
  21. {
  22.     if(pickupid == wejscie1)
  23.     {
  24.         GameTextForPlayer(playerid, "~w~Witaj w szpitalu!", 5000, 1);
  25.     }
  26.     return 1;
  27. }
  28.  
  29. dcmd_placsf(playerid, params[])
  30. {
  31.     if(IsPlayerInRangeOfPoint(playerid, 2.0,1608.3970,1816.8823,10.8203))
  32.     {
  33.         //jest w pickupie
  34.     }
  35.     else
  36.     {
  37.         SendClientMessage(playerid, RED, "Nie jesteล› w pickupie!");
  38.     }
  39.     return 1;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement