27.11.2012, 03:48
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?
(Dont mind the command. Lol will edit in more detail later)
Код:
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; } }