Looking for help with a gift command.
#1

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:
Код:
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;
	}
}
Reply


Messages In This Thread
Looking for help with a gift command. - by ArmandoRamiraz - 27.11.2012, 19:25
Re: Looking for help with a gift command. - by Riddick94 - 27.11.2012, 19:31
Re: Looking for help with a gift command. - by ArmandoRamiraz - 27.11.2012, 19:32
Re: Looking for help with a gift command. - by ArmandoRamiraz - 28.11.2012, 20:15

Forum Jump:


Users browsing this thread: 2 Guest(s)