[Ajuda] Relogio UP
#10

Quote:
Originally Posted by iTakelot
Посмотреть сообщение
Tenta este codigo aqui do IpsBruno


Код:
//TOP
new Level[MAX_PLAYERS];
new Respeito[MAX_PLAYERS];
Код:
forward Timer(playerid);
public Timer(playerid)
{
Respeito[playerid]++;
SendClientMessage(playerid,COR_AQUI,"Parabens Aumentou seu Respeito Mais um Pouco Aumenta o Level");
if(Respeito[playerid] == 5)
{
Level[playerid]++;
SendClientMessage(playerid,COR_AQUI,"**** Parabens Upou Seu Level ****");
Respeito[playerid] = 0;
}
return 1;
}
SALVANDO O RESPEITO

Em OnGameModeInit:
PHP код:
if(!fexist("levels.dkn")) dini_Create("levels.dkn"); 
Em Onplayerdisconnect
PHP код:
dini_IntSet("levels.dkn",PlayerName(playerid),Level[playerid]); 
Em Onplayerconnect
PHP код:
 if(dini_Isset("levels.dkn",PlayerName(playerid))) Level[playerid] = (playerid,dini_Int("levels.dkn",PlayerName(playerid))); 
Fim do GM

Код:
stock PlayerName(playerid)
{
new PlayerNameLevel[MAX_PLAYERS];
GetPlayerName(playerid, PlayerNameLevel, MAX_PLAYERS);
return PlayerNameLevel;
}
te mandei uma MP , olha la
Reply


Messages In This Thread
Relogio UP - by Mnnny - 25.06.2015, 23:38
Re: Relogio UP - by ExPLORE - 25.06.2015, 23:42
Re: Relogio UP - by Mnnny - 25.06.2015, 23:55
Re: Relogio UP - by LockedLucas - 25.06.2015, 23:57
Re: Relogio UP - by ExPLORE - 25.06.2015, 23:59
Re: Relogio UP - by Mnnny - 26.06.2015, 00:08
Re: Relogio UP - by iTakelot - 26.06.2015, 00:17
Re: Relogio UP - by Mnnny - 26.06.2015, 00:22
Re: Relogio UP - by ExPLORE - 26.06.2015, 00:28
Re: Relogio UP - by Mnnny - 26.06.2015, 00:29

Forum Jump:


Users browsing this thread: 1 Guest(s)