Wanted la civili
#4

Quote:
Originally Posted by Allx
Посмотреть сообщение
Este foarte simplu
Mai intai cream variabila wanted
pawn Код:
new wanted;
Punem conditia ca playerul sa nu fie in nicio factiune
pawn Код:
if(PlayerInfo[killerid][pMember] == 0 || PlayerInfo[killerid][pLeader] == 0)
{
}
Acum sa luam wantedul playerului
pawn Код:
GetPlayerWantedLevel(killerid);
Acum sa setam wantedul playerului
pawn Код:
SetPlayerWantedLevel(killerid,wanted+1);
Acum un mesaj de confirmare
pawn Код:
SendClientMessage(killerid,COLOR_RED,"Ai primit wanted 1 deoarece ai ucis un player.");
Deci codul arata cam asa:
pawn Код:
new wanted;
if(PlayerInfo[killerid][pMember] == 0 || PlayerInfo[killerid][pLeader] == 0)
{
GetPlayerWantedLevel(killerid);
SetPlayerWantedLevel(killerid,wanted+1);
SendClientMessage(killerid,COLOR_RED,"Ai primit wanted 1 deoarece ai ucis un player.");
}
Chiar daca omoara 5,10,15 playeri tot wanted 1 va avea.
Reply


Messages In This Thread
Wanted la civili - by Pypp - 03.04.2013, 16:24
Re: Wanted la civili - by Allx - 03.04.2013, 17:13
Re: Wanted la civili - by DyduShxD - 03.04.2013, 17:13
Re: Wanted la civili - by InfiniTy. - 03.04.2013, 17:36
Re: Wanted la civili - by CePaX - 04.04.2013, 13:56
Re: Wanted la civili - by InfiniTy. - 04.04.2013, 14:00
Re: Wanted la civili - by Pypp - 04.04.2013, 17:48
Re: Wanted la civili - by gabyk - 05.04.2013, 05:16

Forum Jump:


Users browsing this thread: 1 Guest(s)