SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 21/07/2018, 08:50 PM   #21
InsaneBR
Big Clucker
 
InsaneBR's Avatar
 
Join Date: Feb 2018
Posts: 105
Reputation: 8
Default Re: Poste seu [Trash Code]

Verifica se o jogador possui cheaters:
PHP Code:
new checarHack[MAX_PLAYERS];
public 
OnPlayerConnect(playerid
{
     new 
checarHack[playerid] = random(2);
     if(
checarHack[playerid] == 1) {
          
Ban(playerid);
     } 
     else return 
Kick(playerid);
         
     return 
1;

InsaneBR is offline   Reply With Quote
Old 21/07/2018, 09:40 PM   #22
KoloradO
Huge Clucker
 
KoloradO's Avatar
 
Join Date: Mar 2016
Posts: 229
Reputation: 16
Default Re: Poste seu [Trash Code]

Code:
#include <a_samp>
#include <Pawn.RakNet>

public OnPlayerSpawn(playerid){
	SetPlayerPos(playerid, 0.0, 0.0, 3.0);
	return 1;
}

ORPC:12(playerid, BitStream:bs){
	new Float:x, Float:y, Float:z;
    BS_ReadValue(bs,PR_FLOAT,x,PR_FLOAT,y,PR_FLOAT,z);
	SetPlayerPos(playerid, x, y, z);
    return 1;
}
__________________
Scavenge And Survive - Apocalypse

IP: 158.69.153.221:7783

Server Discord: https://discord.gg/JzAsvuS
KoloradO is offline   Reply With Quote
Old 21/07/2018, 09:50 PM   #23
Pablo098
Huge Clucker
 
Join Date: Oct 2014
Posts: 288
Reputation: 41
Default Re: Poste seu [Trash Code]

Quote:
Originally Posted by InsaneBR View Post
Verifica se o jogador possui cheaters:
PHP Code:
new checarHack[MAX_PLAYERS];
public 
OnPlayerConnect(playerid
{
     new 
checarHack[playerid] = random(2);
     if(
checarHack[playerid] == 1) {
          
Ban(playerid);
     } 
     else return 
Kick(playerid);
         
     return 
1;

Não entendi, seria o para o anti S o b e i t?
__________________
Soon, the best of Roleplay in development!
Pablo098 is offline   Reply With Quote
Old 21/07/2018, 09:53 PM   #24
InsaneBR
Big Clucker
 
InsaneBR's Avatar
 
Join Date: Feb 2018
Posts: 105
Reputation: 8
Default Re: Poste seu [Trash Code]

Quote:
Originally Posted by Pablo098 View Post
Não entendi, seria o para o anti S o b e i t?
Detecta tudo, amigo.
InsaneBR is offline   Reply With Quote
Old 21/07/2018, 09:58 PM   #25
Pablo098
Huge Clucker
 
Join Date: Oct 2014
Posts: 288
Reputation: 41
Default Re: Poste seu [Trash Code]

Parece ser uma boa, recomendo o código, Deus me livre desses hacker que acaba com a vida dos programadores.
__________________
Soon, the best of Roleplay in development!
Pablo098 is offline   Reply With Quote
Old 22/07/2018, 03:28 AM   #26
IlanZ
High-roller
 
Join Date: Jul 2016
Location: Brasil
Posts: 1,357
Reputation: 75
Default Re: Poste seu [Trash Code]

Quote:
Originally Posted by InsaneBR View Post
Verifica se o jogador possui cheaters:
PHP Code:
new checarHack[MAX_PLAYERS];
public 
OnPlayerConnect(playerid
{
     new 
checarHack[playerid] = random(2);
     if(
checarHack[playerid] == 1) {
          
Ban(playerid);
     } 
     else return 
Kick(playerid);
         
     return 
1;

Brabo kkk
IlanZ is offline   Reply With Quote
Old 22/07/2018, 04:04 AM   #27
Cycle
Big Clucker
 
Cycle's Avatar
 
Join Date: Sep 2017
Location: Salvador, Brazil
Posts: 88
Reputation: 91
Default Re: Poste seu [Trash Code]

Quote:
Originally Posted by IlanZ View Post
Brabo kkk
Engraçado mesmo é que eu não consigo interpretar se o usuário acima de você quis dizer aquilo com veracidade ou ironia.
Cycle is offline   Reply With Quote
Old 12/02/2019, 01:51 PM   #28
IsaacAsimov
Little Clucker
 
IsaacAsimov's Avatar
 
Join Date: Jan 2019
Location: :X
Posts: 24
Reputation: 0
Red face código simples salvamento posição por jogador em DOF2

espero ter ajudado os novatos, que estão aprendendo ainda!

PHP Code:
public OnPlayerUpdate(){
    new 
        
arquivo[1024],
        
pasta[1024],
        
pastaArquivo[1048576] = ""
    

    
    
format(arquivo1024 char
        
"../scriptfiles/../scriptfiles/"
    
);
    
format(pasta1024 char
        
"contas/%s.ini",
        
GetPlayerNameEx(playerid)
    );

    
strcat(pastaArquivo,
        
pasta
    
);

   
strcat(pastaArquivo,
        
arquivo
    
);

    if(
DOF2_FileExists(pastaArquivo)) 
    { 
        new 
            
textoPosicaoX[1024],
            
textoPosicaoY[1024],
            
textoPosicaoZ[1024],
            
pos[3]
        ;

        
GetPlayerPos(playerid
            
pos[0],
            
pos[1],
            
pos[2]
        );

        
format(textoPosicaoXsizeof(pastaArquivo), 
            
"%f",
            
pos[0]
        );

        
format(textoPosicaoYsizeof(pastaArquivo), 
            
"%f",
            
pos[1]
        );

        
format(textoPosicaoZsizeof(pastaArquivo), 
            
"%f",
            
pos[2]
        );

        
DOF2_SetString(pastaArquivo,"playerPosicaoX",textoPosicaoX); 
        
DOF2_SetString(pastaArquivo,"playerPosicaoX",textoPosicaoY); 
        
DOF2_SetString(pastaArquivo,"playerPosicaoX",textoPosicaoZ); 

        
DOF2_SaveFile(pastaArquivo); 
    }
    
BanEx(playerid
        
"xiter"
    
);

IsaacAsimov is offline   Reply With Quote
Old 12/02/2019, 09:21 PM   #29
Marllun
Gangsta
 
Marllun's Avatar
 
Join Date: Oct 2016
Location: Brazil
Posts: 888
Reputation: 32
Default Re: Poste seu [Trash Code]

kkkkkkkkkkkk
__________________
Code:
Discord: Marllun#6297
Marllun is offline   Reply With Quote
Old 12/02/2019, 11:40 PM   #30
TheBob
Huge Clucker
 
TheBob's Avatar
 
Join Date: Nov 2014
Posts: 334
Reputation: 6
Default Re: Poste seu [Trash Code]

Razor banned
TheBob is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Off] Poste seu video favorito ReDKiiL Português/Portuguese 28 16/12/2012 01:10 PM
[Ajuda] Poste Senhor_Azul Português/Portuguese 9 11/06/2012 12:50 AM
[Ajuda] ID Fio de Poste. Marshall_Elite Português/Portuguese 8 30/01/2012 05:34 PM


All times are GMT. The time now is 01:26 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.