[Ajuda] Evitar roubo
#1

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);
Reply
#2

pawn Код:
if(IsACop(killerid)) {
    //
Reply
#3

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);
    }
}
Reply
#4

testando
Reply
#5

с 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.
Reply
#6

pq da esses erros cidade nova?
Reply
#7

Quote:
Originally Posted by Gutierrez_zikaloko
Посмотреть сообщение
pq da esses erros cidade nova?
Nгo fechou alguma chave...
Reply
#8

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)