Opis problema:Napravio sam pod onplayerdeath rankove znaci ono do 100 killova bot od sto do 20 pocetnik itd e sad kako da napravim textdraw kraj mape u kojem ce pisati npr Ex BOT ako je igrac bot EX pocetnik ako je igrac pocetnik
Dio scripte:
if(GetPlayerScore(killerid) == 5) // Broj ubistava koji su potrebni za rank 1,Pocetnik
{
GetPlayerName(killerid, string, sizeof(string) );
format(string,sizeof(string), " %s je promoviran u rank 1,POCETNIK, ubistvom %d igraca!", string, GetPlayerScore(killerid) );
SendClientMessageToAll(0xFFE87DFF, string);
pRank = 1;
}
else if(GetPlayerScore(killerid) == 50) // Broj ubistava koji su potrebni za rank 2, Ubica
{
GetPlayerName(killerid, string, sizeof(string) );
format(string, sizeof(string)," %s je promoviran u rank 2,UBICA, ubistvom %d igraca!", string, GetPlayerScore(killerid));
SendClientMessageToAll(0xFFE87DFF, string);
pRank = 2;
}
else if(GetPlayerScore(killerid) == 150) //Broj ubistava koji su potrebni za rank 3, Gangster
{
GetPlayerName(killerid, string, sizeof(string) );
format(string, sizeof(string), " %s je promoviran u rank 3,GANGSTER, ubistvom %d igraca!", string, GetPlayerScore(killerid));
SendClientMessageToAll(0xFFE87DFF, string);
pRank = 3;
}
else if(GetPlayerScore(killerid) == 300) //Broj ubistava koji su potrebni za rank 4, Hitman
{
GetPlayerName(killerid, string, sizeof(string) );
format(string, sizeof(string), " %s je promoviran u rank 4, HITMAN, ubistvom %d igraca!", string, GetPlayerScore(killerid));
SendClientMessageToAll(0xFFE87DFF, string);
pRank = 4;
}
else if(GetPlayerScore(killerid) == 500) // Broj ubistava koji su potrebni za rank 5, Gazda
{
GetPlayerName(killerid, string, sizeof(string) );
format(string, sizeof(string), " %s je promoviran u rank 5, GAZDA, ubistvom %d igraca!", string, GetPlayerScore(killerid));
SendClientMessageToAll(0xFFE87DFF, string);
pRank = 5;
}
else if(GetPlayerScore(killerid) == 1000) // Broj ubistava koji su potrebni za rank 6, Legenda
{
GetPlayerName(killerid, string, sizeof(string) );
format(string,sizeof(string), " %s je promoviran u rank 6, LEGENDA, ubistvom %d igraca!", string, GetPlayerScore(killerid));
SendClientMessageToAll(0xFFE87DFF, string);
pRank = 6;
}Slika video://
