15.01.2012, 21:12
Nгo seria assim?
?
Ja que vc ja subistuiu a 'level up'
pawn Код:
public RelogioUP()
{
new string[256], segUP = 0, minUP = 0; minUP--;
if(segUP<1) {
segUP=59; minUP--;
}
if(minUP<1) {
minUP = 9;
}
if(segUP <= 9) {
format(string,60,"~w~%d:0%d +Exp",minUP,segUP);
}
else {
format(string,60,"~w~%d:%d +Exp",minUP,segUP);
}
TextDrawSetString(UPRelogio,string);
return 1;
}
pawn Код:
public LevelUP()
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
new string[256];
new aname[MAX_PLAYER_NAME];
GetPlayerName(i, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Exp
if(dini_Int(file, "Tempo") >=7)
{
dini_IntSet(file, "EXP", dini_Int(file, "EXP")+1);
format(string, sizeof(string), "| UP | Vocк ganhou +1 experiкncia! [%d / 5]",dini_Int(file, "EXP"));
PlayerPlaySound(i, 1057, 0, 0, 0);
SendClientMessage(i, 0x75EA00AA, string);
dini_IntSet(file, "Tempo",0);
}
if(dini_Int(file, "EXP") >=5)
{
dini_IntSet(file, "Level", dini_Int(file, "Level")+1);
format(string, sizeof(string), "| UP | Vocк juntou 5 experiкncias e ganhou +1 level! [ %d ] ",dini_Int(file, "Level"));
SendClientMessage(i, 0x75EA00AA, string);
PlayerPlaySound(i, 1057, 0, 0, 0);
dini_IntSet(file, "EXP",0);
//dini_IntSet(file, "rouboubanco", 0);
dini_IntSet(file, "CriouBarreira", 0);
jasequestro[i] = 0;
jacomeupizza[i] = 0;
}
}
}
return 1;
}
Ja que vc ja subistuiu a 'level up'