help me PLAYER_STATE_WASTED ?
#1

My sever use function PLAYER_STATE_WASTED

When robber was die, Police around robber will get Soul sample

if WantedLevel Robber = 10, I want to 10/Police around robber then police will get soul

Wanted = 10 Polices 2 Will Get one by one 5 - 5

sorry my language help me please, Thank
Reply
#2

Get soul? The fuck? :S

I think you need a new translator.

Use OnPlayerDeath?
Reply
#3

Quote:
Originally Posted by MP2
Посмотреть сообщение
Get soul? The fuck? :S

I think you need a new translator.

Use OnPlayerDeath?
LOL

"gunnrcrakr" can you explain more?
Reply
#4

Quote:
Originally Posted by Youice
Посмотреть сообщение
LOL

"gunnrcrakr" can you explain more?
if(newstate == PLAYER_STATE_WASTED)
{
if(WantedLevel[playerid] >= 1)
{
new price = WantedLevel[playerid] * 2000;
new asoul = WantedLevel[playerid];
new count;
for(new i = 0; i < MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[i] == 2 && CrimInRange(50.0, playerid,i) || PlayerInfo[i][pMember] == 23 && PlayerInfo[playerid][pMember] != 23 && CrimInRange(50.0, playerid,i))
{
new tmphour;
gettime(tmphour);
tmphour = shifthour;
if(tmphour >= 6 && tmphour <=24)
{
if(PlayerInfo[i][pYa3Time] >= 1)
{
SendClientMessage(i, COLOR_YELLOW, "¤ШідґйГСє Soul НХЎ 2 ґЗ§ ЁТЎВТґЩґЗФ**Ті !");
PlayerInfo[i][pSoul] += 2;
}
new daisoul = WantedLevel[playerid]/i;
PlayerInfo[i][pSoul] += daisoul;
format(string, sizeof(string), "¤ШідґйГСєЗФ**Ті¤№ГйТВ %d ґЗ§ ЁТЎЎТГЄиЗВЁСє¤№ГйТВ", daisoul);
SendClientMessage(i, COLOR_YELLOW, string);
}
PlayerInfo[i][pAccount] += price;
count = 1;
}
}
}
if(count == 1)
{
PlayerInfo[playerid][pSoul] -= asoul;
ResetPlayerWeapons(playerid);
SafeGivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pWantedDeaths] += 1;
PlayerInfo[playerid][pJailed] = 1;
ResetPlayerWeapons(playerid);
SetPlayerSpawn(playerid);
PlayerInfo[playerid][pJailTime] += (WantedLevel[playerid])*(120);
format(string, sizeof(string), "¤ШіµФґ¤ШЎ %d ЗФ№Т·Х , бЕРаКХВ¤иТ»ГСєЁУ№Т№ %d аѕГТР¤ШіЅиТЅЧ№ЎТГЁСєЎШБЁТЎаЁйТЛ№йТ·Хи", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "¤ШіаКХВЗФ**Ті %d ґЗ§ ЁТЎЎТГ¶ЩЎЁСєµТВ !", asoul);
SendClientMessage(playerid, COLOR_YELLOW, string);
PlayerInfo[playerid][pRobber] = 0;
PlayerInfo[playerid][pES] = 0;
PlayerFrozened[playerid] = 0;
WantedLevel[playerid] = 0;
SetPlayerStar(playerid);
}
}
}


But this old code Police around robber 50 rage will get soul but I want 2 Police Soul/2, 10 Police Soul/10 I want it sry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)