18.09.2011, 22:03
PHP код:
enum iFloat
{
Float:PosX,
Float:PosY,
Float:PosZ,
Float:Angle,
Float:Healthbar,
Float:Armourbar,
}
PHP код:
new CheckPlayerAFK[MAX_PLAYERS];
new UpdateInfo[MAX_PLAYERS][iFloat];
new InactivePlayer[MAX_PLAYERS];
PHP код:
public OnPlayerConnect(playerid)
{
UpdateInfo[playerid][PosX] = 0;
UpdateInfo[playerid][PosY] = 0;
UpdateInfo[playerid][PosZ] = 0;
UpdateInfo[playerid][Angle] = 0;
UpdateInfo[playerid][Healthbar] = 0;
UpdateInfo[playerid][Armourbar] = 0;
InactivePlayer[playerid] = 0;
CheckPlayerAFK[playerid] = 0;
return 1;
}
Edit: there's many more stuff you can use, I just gave ya an example