27.11.2012, 19:25
This guy gave me an idea about making a gift system. But I tweeked it a little. When I spawn a gift box by an Admin. I want other players to type /getgift to get some random gift I make. How would I make the command for this?
My giftbox spawning:
My giftbox spawning:
Код:
CMD:xmas(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command!"); { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); CreateObject(19054,x+2.0,y,z,0.0,1,0,300); SendClientMessageToAll(COLOR_RED, "An Admin has set a gift box!"); return 1; } }