Guest User

Untitled

a guest
Dec 17th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. new CzapkaNaGlowie[MAX_PLAYERS];
  2.  
  3.  
  4.  
  5. CMD:mikolaj(playerid, params[])
  6.  
  7. {
  8.  
  9. if(!CzapkaNaGlowie[playerid])
  10.  
  11. {
  12.  
  13. CzapkaNaGlowie[playerid] = 1;
  14.  
  15. SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
  16.  
  17. SendClientMessage(playerid, 0xAFAFAFAA, " (info) ");
  18.  
  19. SendClientMessage(playerid, 0xAFAFAFAA, "{808080}» {AFAFAF}Założyłeś na głowę Czapkę Mikołaja.");
  20.  
  21. }
  22.  
  23. else
  24.  
  25. {
  26.  
  27. CzapkaNaGlowie[playerid] = 0;
  28.  
  29. if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) RemovePlayerAttachedObject(playerid, 3);
  30.  
  31. SendClientMessage(playerid, 0xAFAFAFAA, "{808080}» {AFAFAF}Zdjąłeś z głowy Czapkę Mikołaja.");
  32.  
  33. }
  34.  
  35.  
  36.  
  37. return 1;
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment