10.04.2014, 16:00
Код:
forward FS_CreateButton(Float:X, Float:Y, Float:Z, Float:Angle); public FS_CreateButton(Float:X, Float:Y, Float:Z, Float:Angle) { new buttonid; for(buttonid = 1; buttonid <= MAX_BUTTONS; buttonid ++) if (!ButtonInfo[buttonid][Created]) break; ButtonInfo[buttonid][ObjectID] = CreateObject(OBJECT,X,Y,Z,0.0,0.0,Angle); ButtonInfo[buttonid][Pos][0] = X; ButtonInfo[buttonid][Pos][1] = Y; ButtonInfo[buttonid][Pos][2] = Z; ButtonInfo[buttonid][Pos][3] = Angle; ButtonInfo[buttonid][Moving] = false; ButtonInfo[buttonid][Created] = true; for (new playerid = 0; playerid < MAX_PLAYERS; playerid ++) ButtonInfo[buttonid][Usable][playerid] = true; return buttonid; }