08.05.2012, 21:53
Fбcil:
#EDITADO
pawn Код:
TimerUpdate(); public TimerUpdate()
{
new string[128],name[MAX_PLAYER_NAME];
for(new i=0;i<MAX_PLAYERS;i++)
{
if (IsPlayerConnected(i))
{
if(Exp[i] >= 10)
{
Exp[i] = Exp[i]-10;
Nivel[i]++;
GetPlayerName(i,name,sizeof(name));
format(string,sizeof(string),"~b~~h~~h~~h~%s Subiu de Nivel!!!",name);
GameTextForAll(string,2000,3);
TextDrawHideForPlayer(i,Textdrawz1[i]);
format(string, sizeof(string), "%s" ,GetExpTol(i));
TextDrawSetString(Textdrawz1[i],string);
TextDrawShowForPlayer(i,Textdrawz1[i]);
}
else
{
TextDrawHideForPlayer(i,Textdrawz1[i]);
format(string, sizeof(string), "%s" ,GetExpTol(i));
TextDrawSetString(Textdrawz1[i],string);
TextDrawShowForPlayer(i,Textdrawz1[i]);
}
}
}
return 1;
}