Wysłany: 2013-04-02, 13:41
naimad424
Damian
Wiek: 28 Na forum: 4915 dni Posty: 357
Piwa : 3508
Anty Cheat nadaj?cy si? na Honesta, lepiej blokuje bronie, wy?apuje dodawanie pieni?dzy
Kod:
/*
W OnGameModeInit daj:
SetTimer("Kasa", 5000, 1);
Zamie? ka?de GivePlayerMoney na DajKase
i wszystkie GetPlayerMoney na SprawdzKase
*/
stock SetPlayerMoney(playerid, money)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, money);
}
stock DajKase(playerid, money)
{
SetPVarInt(playerid, "Money", money);
SetPlayerMoney(playerid, GetPVarInt(playerid, money));
}
stock SprawdzKase(playerid)
{
return GetPVarInt(playerid, "Money");
}
forward Kasa();
public Kasa()
{
for(new i; i > GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
SetPlayerMoney(i, GetPVarInt(i, "Money"));
}
continue;
}
}
public OnPlayerUpdate(playerid)
{
switch(GetPlayerWeapon(playerid))
{
case 1,2,3,4,5,6,7,8,9,10,
11,12,13,14,15,16,17,18,19,20
,21,22,23,24,25,26,27,28,29,30
,31,32,33,34,35,36,37,38,39,40
,41,42,43,44,45,46://Tutaj s? ID broni za kt?re ma wyrzuca? usu? te kt?re mog? by?
{
SendClientMessage(playerid, -1, "Zosta?e? wyrzucony za WeaponHack");
Kick(playerid);
}
}
return 1;
}
Wysłany: 2013-04-07, 15:54
Krystian5
Wiek: 36 Na forum: 5230 dni Posty: 185
Piwa : 1
By?aby mo?liwo?? zrobienia wyj?tku u?ycia broni przez Admin?w i dane frakcje?
Wysłany: 2013-04-07, 21:41
Seboo
Wiek: 30 Na forum: 5516 dni Posty: 124
Nick w MP: Sebo
Piwa : 1228
Warunek:
Kod: if(!IsPlayerAdmin(playerid)) return 1;
Nie wiem jak tam s? teamy ustawiane, wi?c Ci nie pomog?.
Wysłany: 2013-05-01, 20:22
naimad424
Damian
Wiek: 28 Na forum: 4915 dni Posty: 357
Piwa : 3508
sory za odkop, ale nie sprawdzi?em skryptu i okaza?y si? errory:
Kod:
C:\Users\kuba\Desktop\programy i instalki\PAWN , mapy itp\Mordy-RP GM\anty.pwn(13) : error 017: undefined symbol "ResetPlayerMoney"
C:\Users\kuba\Desktop\programy i instalki\PAWN , mapy itp\Mordy-RP GM\anty.pwn(19) : error 017: undefined symbol "SetPVarInt"
C:\Users\kuba\Desktop\programy i instalki\PAWN , mapy itp\Mordy-RP GM\anty.pwn(20) : error 017: undefined symbol "GetPVarInt"
C:\Users\kuba\Desktop\programy i instalki\PAWN , mapy itp\Mordy-RP GM\anty.pwn(17) : warning 203: symbol is never used: "money"
C:\Users\kuba\Desktop\programy i instalki\PAWN , mapy itp\Mordy-RP GM\anty.pwn(23) : error 017: undefined symbol "GetMaxPlayers"
C:\Users\kuba\Desktop\programy i instalki\PAWN , mapy itp\Mordy-RP GM\anty.pwn(33) : error 017: undefined symbol "IsPlayerConnected"
C:\Users\kuba\Desktop\programy i instalki\PAWN , mapy itp\Mordy-RP GM\anty.pwn(35) : error 017: undefined symbol "GetPVarInt"
C:\Users\kuba\Desktop\programy i instalki\PAWN , mapy itp\Mordy-RP GM\anty.pwn(41) : warning 235: public function lacks forward declaration (symbol "OnPlayerUpdate")
C:\Users\kuba\Desktop\programy i instalki\PAWN , mapy itp\Mordy-RP GM\anty.pwn(43) : error 017: undefined symbol "GetPlayerWeapon"
C:\Users\kuba\Desktop\programy i instalki\PAWN , mapy itp\Mordy-RP GM\anty.pwn(51) : error 017: undefined symbol "SendClientMessage"
C:\Users\kuba\Desktop\programy i instalki\PAWN , mapy itp\Mordy-RP GM\anty.pwn(52) : error 017: undefined symbol "Kick"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.
Na dzie? dzisiejszy nie wyja?ni? problemu, lecz w najbli?szych dniach dam na to odpowiedz.
Wysłany: 2013-05-02, 22:27
julek90
Wiek: 27 Na forum: 4865 dni Posty: 47
Piwa : 113
naimad424 Najlepiej jakby? da? ca?y naprawiony kod
Wysłany: 2013-05-02, 22:36
xqz
otaku desu!
Wiek: 32 Na forum: 6406 dni Posty: 723
Nick w MP: xqz
Piwa : 5465
No c??, my?l?, ?e dodanie includ?w do "skryptu" by?o by ca?kiem przydatne
Wysłany: 2013-05-07, 16:57
julek90
Wiek: 27 Na forum: 4865 dni Posty: 47
Piwa : 113
Dacie poprawiana wersje dam
Wysłany: 2013-05-07, 17:05
Funktastyczny
Wiek: 21 Na forum: 4778 dni Posty: 2
Nick w MP: Funktastyczny
/plac mo?na zabezpieczy? o wiele pro?ciej, wystarczy doda? 2 logiczne warunki do komendy... pare sekund pracy.
Tagi: anty :: cheat
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: