19.11.2012, 23:14
(
Последний раз редактировалось s4kuL; 20.11.2012 в 00:41.
)
Eai gelera eu fiz um sistema de recompensa simples aqui, mais tб com um erro, tipo eu se eu mato o cara 10 vezes, da certo e aparece no chat que matei 10 e tu procurado , mais ao mesmo tempo aparece pra mim recompensa por matar(bounty for killing..) talplayrer e a recompensa que estou, entгo estб enviando para quem mata 2 mensagens e para que morre tб normal. em fim espero que vocкs possam me ajudar.
Ai tб a public on player death
Ai tб a public on player death
pawn Код:
// DANDO O LEVEL E MANDANDO A MENSAGEM //
Spree[killerid] ++;
if(Spree[playerid] == 10)
{
SetPlayerWantedLevel(killerid,1);
format(stringrecom,sizeof(stringrecom),"-OpServ- %s Wanted Level 1. Bounty: 10000$.",Nome(killerid));
SendClientMessageToAll(yellow,stringrecom);
AtualizarTextWanted(killerid);
Recompensa[playerid] = 10000;
}
if(Spree[playerid] == 20)
{
SetPlayerWantedLevel(killerid,2);
format(stringrecom,sizeof(stringrecom),"-OpServ- %s Wanted Level 2. Bounty: 20000$.",Nome(killerid));
SendClientMessageToAll(yellow,stringrecom);
AtualizarTextWanted(killerid);
Recompensa[playerid] = 20000;
}
if(Spree[playerid] == 30)
{
SetPlayerWantedLevel(killerid,3);
format(stringrecom,sizeof(stringrecom),"-OpServ- %s Wanted Level 3. Bounty: 30000$.",Nome(killerid));
SendClientMessageToAll(yellow,stringrecom);
AtualizarTextWanted(killerid);
Recompensa[playerid] = 30000;
}
if(Spree[playerid] == 40)
{
SetPlayerWantedLevel(killerid,4);
format(stringrecom,sizeof(stringrecom),"-OpServ- %s Wanted Level 4. Bounty: 40000$.",Nome(killerid));
SendClientMessageToAll(yellow,stringrecom);
AtualizarTextWanted(yellow);
Recompensa[playerid] = 40000;
}
if(Spree[playerid] == 50)
{
SetPlayerWantedLevel(killerid,5);
format(stringrecom,sizeof(stringrecom),"-OpServ- %s Wanted Level 5. Bounty: 50000$.",Nome(killerid));
SendClientMessageToAll(yellow,stringrecom);
AtualizarTextWanted(killerid);
Recompensa[playerid] = 50000;
}
if(Spree[playerid] == 60)
{
SetPlayerWantedLevel(killerid,5);
format(stringrecom,sizeof(stringrecom),"-OpServ- %s Wanted Level 6. Bounty: 60000$.",Nome(killerid));
SendClientMessageToAll(yellow,stringrecom);
AtualizarTextWanted(killerid);
Recompensa[playerid] = 60000;
}
// AGORA VAMOS PAGAR OS CARA QUE MATO NЙ? //
if(Recompensa[playerid] == 10000)
{
format(stringrecom,sizeof(stringrecom),"Bounty for killing %s: 10000$.",Nome(playerid));
SendClientMessage(killerid,yellow,stringrecom);
SetPlayerWantedLevel(playerid,0);
GivePlayerMoney(killerid,10000);
AtualizarTextWanted(killerid);
AtualizarTextWanted(playerid);
Spree[killerid] ++;
}
if(Recompensa[playerid] == 20000)
{
format(stringrecom,sizeof(stringrecom),"Bounty for killing %s: 20000$.",Nome(playerid));
SendClientMessage(killerid,yellow,stringrecom);
SetPlayerWantedLevel(killerid,0);
GivePlayerMoney(killerid,20000);
AtualizarTextWanted(killerid);
AtualizarTextWanted(playerid);
Spree[killerid] ++;
}
if(Recompensa[playerid] == 30000)
{
format(stringrecom,sizeof(stringrecom),"Bounty for killing %s: 30000$.",Nome(playerid));
SendClientMessage(killerid,yellow,stringrecom);
SetPlayerWantedLevel(killerid,0);
GivePlayerMoney(killerid,30000);
AtualizarTextWanted(killerid);
AtualizarTextWanted(playerid);
Spree[killerid] ++;
}
if(Recompensa[playerid] == 40000)
{
format(stringrecom,sizeof(stringrecom),"Bounty for killing %s: 40000$.",Nome(playerid));
SendClientMessage(killerid,yellow,stringrecom);
SetPlayerWantedLevel(killerid,0);
GivePlayerMoney(killerid,40000);
AtualizarTextWanted(killerid);
AtualizarTextWanted(playerid);
Spree[killerid] ++;
}
if(Recompensa[playerid] == 50000)
{
format(stringrecom,sizeof(stringrecom),"Bounty for killing %s: 50000$.",Nome(playerid));
SendClientMessage(killerid,yellow,stringrecom);
SetPlayerWantedLevel(killerid,0);
GivePlayerMoney(killerid,50000);
AtualizarTextWanted(killerid);
AtualizarTextWanted(playerid);
Spree[killerid] ++;
}
if(Recompensa[playerid] == 60000)
{
format(stringrecom,sizeof(stringrecom),"Bounty for killing %s: 60000$.",Nome(playerid));
SendClientMessage(killerid,yellow,stringrecom);
SetPlayerWantedLevel(killerid,0);
GivePlayerMoney(killerid,60000);
AtualizarTextWanted(killerid);
AtualizarTextWanted(playerid);
Spree[killerid] ++;
}


