[Ajuda] fazendo filtescript de anti hacker
#1

уla galera queria fazer um filtescript de anti hacker

com isto definido etc


PHP Code:
public OnPlayerSpawn(playerid)
{
    print(
"Executing spawn...");
    if(
Logged[playerid] == false) return 1;
    
GetPlayerPos(playeridPlayerInfo[playerid][pos_xl], PlayerInfo[playerid][pos_yl], PlayerInfo[playerid][pos_zl]);
    
SetCameraBehindPlayer(playerid);
    
Spawn[playerid] = true;
    
SetPlayerColor(playeridPlayerColor[playerid]);
    if(
BattleInfo[playerid][pOnBattle] == 1)
     {
         
BattleInfo[playerid][pDed] +=1;
         new 
lstat[256];
        
format(lstatsizeof(lstat), "Twoje lokalne statystyki:\nDrużyna: %d\nPunkty: %d\nŚmierci: %d\nFlagi: %d\nBomby: %d"BattleInfo[playerid][pBattleTeam],BattleInfo[playerid][pPoints],BattleInfo[playerid][pDed],BattleInfo[playerid][pFlag],BattleInfo[playerid][pBomb]);
          
UpdatePlayer3DTextLabelText(playeridBattleLocalCOLOR_GREENlstat);
        if(
BattleInfo[playerid][pBattleTeam] == 0)
        {
            
Battle[bAlives] -=1;
        }
        if(
BattleInfo[playerid][pBattleTeam] == 1)
        {
            
Battle[bAlivesA] -=1;
        }
        if(
BattleInfo[playerid][pBattleTeam] == 2)
        {
            
Battle[bAlivesB] -=1;
        }
         
SetPlayerPos(playerid1431.5,757.0,16.1);
         
PreferPlayerBattle(playerid);
         return 
1;
     }
    if(
PlayerInfo[playerid][aj] != 0)
    {
        
SetPlayerInterior(playeridUstawienia[AJ_INT]);
        
SetPlayerPos(playeridUstawienia[AJ_X], Ustawienia[AJ_Y], Ustawienia[AJ_Z]);
        
SetPlayerVirtualWorld(playeridplayerid);
    }
    else if(
PlayerInfo[playerid][prisontime] > 0)
    {
        
TogglePlayerControllable(playerid0);
        
SetPlayerPos(playerid2425.18994141,108.06999969,-72.15000153);
        
SetPlayerVirtualWorld(playerid0);
        
GameTextForPlayer(playerid,"~r~Wczytywanie obiektow~n~~g~Jestes w wiezieniu",3000,3);
        
SetTimerEx("ToggleFreeze"50000"i"playerid);
    }
      else if(
PlayerInfo[playerid][bw] != 0)
    {
        
PlayerInfo[playerid][health] = 10.0;
        
SetPlayerHealth(playerid10.0);
        
SetPlayerPos(playeridPlayerInfo[playerid][pos_x], PlayerInfo[playerid][pos_y], PlayerInfo[playerid][pos_z]+0.3);
        
SetPlayerVirtualWorld(playeridPlayerInfo[playerid][pos_vw]);
        
SetPlayerInterior(playeridPlayerInfo[playerid][pos_int]);
    }
    else if(
GetPVarInt(playerid"spawn") == 3//hotel
    
{
        
SetPlayerPos(playeridHotels[PlayerInfo[playerid][hoteli]][inside_x], Hotels[PlayerInfo[playerid][hoteli]][inside_y], Hotels[PlayerInfo[playerid][hoteli]][inside_z]);
        
SetPlayerVirtualWorld(playeridPlayerInfo[playerid][player_uid]);
           
SetPlayerInterior(playeridHotels[PlayerInfo[playerid][hoteli]][inside_int]);
           
hotel[playerid][0] = 1;
           
hotel[playerid][1] = PlayerInfo[playerid][hoteli];
       }
       else if(
GetPVarInt(playerid"spawn") == 2//dom
       
{
        
SetPlayerPos(playeridDoorInfo[PlayerInfo[playerid][dom]][inside_x], DoorInfo[PlayerInfo[playerid][dom]][inside_y], DoorInfo[PlayerInfo[playerid][dom]][inside_z]);
        
SetPlayerVirtualWorld(playeridDoorInfo[PlayerInfo[playerid][dom]][inside_vw]);
           
SetPlayerInterior(playeridDoorInfo[PlayerInfo[playerid][dom]][inside_int]);
       }
    else if(
GetPVarInt(playerid"spawn") == 11)
    {
        
SetPlayerPos(playeridUstawienia[Spawn1][0], Ustawienia[Spawn1][1], Ustawienia[Spawn1][2]);
        
SetPlayerFacingAngle(playerid90);
        
SetPlayerVirtualWorld(playerid0);
        
SetPlayerInterior(playerid0);
        
PlayerPlaySound(playerid6400Ustawienia[Spawn1][0], Ustawienia[Spawn1][1], Ustawienia[Spawn1][2]);
    }
    else if(
GetPVarInt(playerid"spawn") == 1)
    {
        
SendClientMessage(playeridCLR_GREEN"Twoja pozycja została przywrуcona!");
        
SetPlayerPos(playeridPlayerInfo[playerid][pos_x], PlayerInfo[playerid][pos_y], PlayerInfo[playerid][pos_z]+0.3);
        
SetPlayerVirtualWorld(playeridPlayerInfo[playerid][pos_vw]);
        
SetPlayerInterior(playeridPlayerInfo[playerid][pos_int]);
    }
    
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL,             1);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL_SILENCED,     1);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_DESERT_EAGLE,     1);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_SHOTGUN,             1);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_SAWNOFF_SHOTGUN,     1);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_SPAS12_SHOTGUN,     1);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_MICRO_UZI,         1);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_MP5,                 1);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_AK47,             1);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_M4,                 1);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_SNIPERRIFLE,         1);
    
SetPlayerFightingStyle(playeridPlayerInfo[playerid][sztukawalki]);
    
SetPlayerHealth(playeridPlayerInfo[playerid][health]);
    
SetPlayerDrunkLevel(playeridPlayerInfo[playerid][drunklvl]);
    
Nicki(playerid);
    
DeletePVar(playerid"spawn");
    return 
1;

Poste original
https://sampforum.blast.hk/showthread.php?tid=396187
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)