15.12.2017, 08:23
AtriDmStartTime()
I read what you said, I deleted that thread because it was a common mistake and i was just being stupid. Though I will rewrite my code sometime in the near future. I hope you could help me with this.
PHP код:
public DmEventT()
{
SendClientMessageToAll(0x00FFFFAA, "[EVENT]: {FFFFFF}Atrium deathmatch event has started, type /join to take part!");
AtriHealthPickup[0] = CreateDynamicPickup(1240, 2, 1728.2104,-1668.2876,22.6094, -1, 18, -1, 100.0);
AtriHealthPickup[1] = CreateDynamicPickup(1240, 2, 1701.4614,-1648.4786,20.2194, -1, 18, -1, 100.0);
AtriArmourPickup[0] = CreateDynamicPickup(1242, 2, 1734.8628,-1639.2264,20.2307, -1, 18, -1, 100.0);
AtriArmourPickup[0] = CreateDynamicPickup(1242, 2, 1708.9303,-1677.3439,27.2016, -1, 18, -1, 100.0);
AtriAdrenalinePickup = CreateDynamicPickup(1241, 2, 1721.5195,-1672.7142,20.2234, -1, 18, -1, 100.0);
Event1SecT = SetTimer("AtriDmStartTime", 1000, true);
KillTimer(DmEventTimerVar);
AtriDM = 1;
return 1;
}
PHP код:
CMD:forcetevent(playerid, parmas)
{
if(PInfo[playerid][Admin] < 3) return SendClientMessage(playerid, RED,"[ERROR]: {FFFFFF}You do not have the privilleges to perform this command.");
DmEventT();
return 1;
}