Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:giftbox(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- if(IsPlayerInAnyVehicle(playerid)) return 1;
- new Float:A;
- GetPlayerFacingAngle(playerid, A);
- if(GiftBoxActiv < 1)
- {
- giftboxobject = CreateDynamicObject(19054, GiftPosX,GiftPosY,GiftPosZ - 0.4, 0.0, 0.0, A);
- giftbox3DText = CreateStreamed3DTextLabel("EVILZONE Giftbox\nUse /getgift to get a gift",0xA9C4E4CC,GiftPosX,GiftPosY,GiftPosZ+0.25,8.0,0);
- SS(playerid, COLOR_YELLOW, "Ai activat sistemul de Gift Box!", "The Gift Box system was activated!");
- GiftBoxActiv = 1;
- }
- else
- {
- DestroyDynamicObject(giftboxobject);
- DestroyDynamic3DTextLabel(giftbox3DText);
- SS(playerid, COLOR_YELLOW, "Ai dezactivat sistemul de Gift Box!", "The Gift Box system was dezactivated!");
- GiftBoxActiv = 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_DARKNICERED, AdminOnly);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement