Need help making a small surprise box system for X-MAS
#7

So, instead of putting the object in one spot, I changed it to where it spawns next to an admin. But how would I make the command to /getgift for other players?

Код:
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+1.0,y,z,0.0,1,0,300);
		SendClientMessageToAll(COLOR_RED, "An Admin has set a gift box!");
		return 1;
	}
}
(Dont mind the command. Lol will edit in more detail later)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)