Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. CMD:giftbox(playerid, params[])
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. if(PlayerInfo[playerid][pAdmin] >= 6)
  6. {
  7. if(IsPlayerInAnyVehicle(playerid)) return 1;
  8. new Float:A;
  9. GetPlayerFacingAngle(playerid, A);
  10. if(GiftBoxActiv < 1)
  11. {
  12. giftboxobject = CreateDynamicObject(19054, GiftPosX,GiftPosY,GiftPosZ - 0.4, 0.0, 0.0, A);
  13. giftbox3DText = CreateStreamed3DTextLabel("EVILZONE Giftbox\nUse /getgift to get a gift",0xA9C4E4CC,GiftPosX,GiftPosY,GiftPosZ+0.25,8.0,0);
  14. SS(playerid, COLOR_YELLOW, "Ai activat sistemul de Gift Box!", "The Gift Box system was activated!");
  15. GiftBoxActiv = 1;
  16. }
  17. else
  18. {
  19. DestroyDynamicObject(giftboxobject);
  20. DestroyDynamic3DTextLabel(giftbox3DText);
  21. SS(playerid, COLOR_YELLOW, "Ai dezactivat sistemul de Gift Box!", "The Gift Box system was dezactivated!");
  22. GiftBoxActiv = 0;
  23. }
  24. }
  25. else
  26. {
  27. SendClientMessage(playerid, COLOR_DARKNICERED, AdminOnly);
  28. }
  29. }
  30. return 1;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement