[Ajuda] Evitar roubo -
Gutierrez_zikaloko - 27.05.2012
entao ja tentei um monte de coisa aki mas с funfa.
Quero q quando alguem estiver roubando e um cop matar o q esta roubando, aparecer a mensagem para todos do serve q ele evitou o roubo.
Mas quando o cop mata,с aparece nada, mas se um civil xegar e mata, aparece q o civil evitou.
AJUDA PF.
CODE:
pawn Код:
if (!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й um Policial!");
if(PlayerPaintballing[playerid] != 0)
format(gstring,128,"*Policial %s Evitou um Roubo no Banco e Ganhou R$ 5.000 como Recompensa!",PlayerName(killerid));
SendClientMessageToAll(-1,gstring);
GivePlayerMoney(killerid, 5000);
Re: [Ajuda] Evitar roubo -
zbt - 27.05.2012
pawn Код:
if(IsACop(killerid)) {
//
Re: [Ajuda] Evitar roubo -
CidadeNovaRP - 27.05.2012
Tenta:
pawn Код:
if(IsACop(playerid))
{
if(PlayerPaintballing[playerid] != 0)
{
format(gstring,128,"*Policial %s Evitou um Roubo no Banco e Ganhou R$ 5.000 como Recompensa!",PlayerName(killerid));
SendClientMessageToAll(-1,gstring);
GivePlayerMoney(killerid, 5000);
}
}
Re: [Ajuda] Evitar roubo -
Gutierrez_zikaloko - 27.05.2012
testando
Re: [Ajuda] Evitar roubo -
Gutierrez_zikaloko - 27.05.2012
с vai cidadenova, na hora de compila da isso.
D:\Samp\pawno\include\servermoneyGM.inc(10) : error 004: function "GMInit" is not implemented
D:\Samp\pawno\include\servermoneyGM.inc(16) : error 004: function "GMExit" is not implemented
D:\Samp\pawno\include\servermoneyGM.inc(47) : error 004: function "OnPlayerHaveExtraCash" is not implemented
D:\Samp\gamemodes\BPB.pwn(634) : error 004: function "split" is not implemented
D:\Samp\gamemodes\BPB.pwn(816) : error 004: function "OnPropUpdate" is not implemented
D:\Samp\gamemodes\BPB.pwn(817) : error 004: function "SaveIRC" is not implemented
D:\Samp\gamemodes\BPB.pwn(81

: error 004: function "SaveBoxer" is not implemented
D:\Samp\gamemodes\BPB.pwn(819) : error 004: function "SaveCars" is not implemented
D:\Samp\gamemodes\BPB.pwn(905) : error 004: function "split" is not implemented
D:\Samp\gamemodes\BPB.pwn(3239) : error 017: undefined symbol "ResetPlayerWeaponsEx"
D:\Samp\gamemodes\BPB.pwn(3285) : error 017: undefined symbol "ResetPlayerWeaponsEx"
D:\Samp\gamemodes\BPB.pwn(3319) : error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(337

: error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(3397) : error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(3435) : error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(3774) : error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(3780) : error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(3786) : error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(3792) : error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(379

: error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(3804) : error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(3810) : error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(3816) : error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(3822) : error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(382

: error 004: function "OnPlayerCommandText" is not implemented
D:\Samp\gamemodes\BPB.pwn(3834) : error 004: function "OnPlayerCommandText" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Re: [Ajuda] Evitar roubo -
Gutierrez_zikaloko - 27.05.2012
pq da esses erros cidade nova?
Re: [Ajuda] Evitar roubo -
CidadeNovaRP - 27.05.2012
Quote:
Originally Posted by Gutierrez_zikaloko
pq da esses erros cidade nova?
|
Nгo fechou alguma chave...
Re: [Ajuda] Evitar roubo -
zbt - 27.05.2012
Quote:
Originally Posted by CidadeNovaRP
Tenta:
pawn Код:
if(IsACop(playerid)) { if(PlayerPaintballing[playerid] != 0) { format(gstring,128,"*Policial %s Evitou um Roubo no Banco e Ganhou R$ 5.000 como Recompensa!",PlayerName(killerid)); SendClientMessageToAll(-1,gstring); GivePlayerMoney(killerid, 5000); } }
|
O correto seria killerid..