[GameMode] Mini Base Mata Mata SAMP
#1

Daniel <3
G A M E M O D E PARA ESTUDO/MINI BASE

PHP код:
//----------------------------------------------------------
//
//  Nгo retire os creditos
//  Feito por Lorruan
//
//----------------------------------------------------------
//includes
#include < a_samp >
//cores
#define AMARELO 0xFFFF00FF
#define AZUL 0x058AFFFF
#define ROSA 0xFF05CDFF
#define VERDE 0x33AA33AA
#define BRANCO 0xFFFFFFFF
#define VERMELHO 0xDF0016FF
#define PRETO 0x000000FF
#define CINZA 0x878787FF
#define AZULCLARO 0x03F2FFFF
#define VERDECLARO 0x03FF35FF
#define ROXO 0x7D03FFFF6
#define LARANJA 0xFF7403FF
#define COR_GROOVE 0x00800096
#define COR_BALLAS 0xFF00CDFF
#define COR_DELETE 0xFFFF00AA
#define Violeta 0xFFFF00AA
//define dialogs
//nes/forward
forward SendMensagens();
forward SendMSG();
new 
Text:Textdraw0;
new 
Text:Textdraw1;
new 
jogadoresOnline 0;
//==============================================================================
//CORES
//==============================================================================
new Cores[] =
{
    
0x5EB7E3AA,
    
0xCD6CF6F6,
    
0x685000F6
};
//==============================================================================
//MENSAGEM RANDOMICAS
//==============================================================================
new Mensagens[3][256] =
{
    
"Digite /Comandos Para Ver os comandos do servidor.",
    
"[Duvidas? Viu Xiter? Chame um administrador",
    
"Digite /ajuda para mais informaзхes"
};
//==============================================================================
//NOME SERVIDOR
//==============================================================================
//==============================================================================
//==============================================================================
main()
{
    print(
"============================ = Server Carregado = ==============================");
    print(
"=========================== =  Criado por Loruan = =============================");
    print(
"============================ = Server Carregado = ==============================");
}
public 
OnPlayerConnect(playerid)
{
jogadoresOnline++;
TextDrawShowForPlayer(playeridTextdraw0);
TextDrawShowForPlayer(playeridTextdraw1);
SendClientMessage(playerid AZUL,"                     ");
SendClientMessage(playerid AZUL,"                     ");
SendClientMessage(playerid AZUL,"                     ");
SendClientMessage(playerid AZUL,"                     ");
SendClientMessage(playerid AZUL,"                     ");
SendClientMessage(playerid AZUL,"                     ");
SendClientMessage(playerid AZUL,"                     ");
SendClientMessage(playerid AZUL,"                     ");
SendClientMessage(playerid AZUL,"                     ");
SendClientMessage(playerid AZUL,"                     ");
SendClientMessage(playerid0x63E01BFF"============================ = Bem Vindo = ================================");
SendClientMessage(playerid, -1" ");
SendClientMessage(playerid, -1"Bem vindo, Brazil x Favela x Sinistra quem й o melhor? Escolha sua Team e Divirta-se");
SendClientMessage(playerid, -1"");
SendClientMessage(playerid0x63E01BFF"============================ = Bem Vindo = ================================");
new 
pname[MAX_PLAYER_NAME], string[22 MAX_PLAYER_NAME];
GetPlayerName(playeridpnamesizeof(pname));
format(stringsizeof(string), "[ INFO SERVER ] O Player %s entrou"pname);
SendClientMessageToAll(BRANCOstring);
return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
  
jogadoresOnline--;
  new 
pname[MAX_PLAYER_NAME], string[39 MAX_PLAYER_NAME];
  
GetPlayerName(playeridpnamesizeof(pname));
  switch(
reason)
  {
    case 
0format(stringsizeof(string), "%s saiu do servidor (Crash/Conexгo)"pname);
    case 
1format(stringsizeof(string), "%s saiu do servidor. (Conta Prуpia)"pname);
    case 
2format(stringsizeof(string), "%s fez merda e saiu do servidor. (Kickado/Banido)"pname);
  }
  
SendClientMessageToAll(BRANCOstring);
  return 
1;
}
public 
OnGameModeInit()
{
    
    
CreateObject(37492902.3, -1623.639915.700347);
    
CreateObject(37492886.6001, -1620.011115.700346.998);
    
CreateObject(37492868.3, -1615.815.700346.998);
    
CreateObject(37492916.8999, -1578.515.700346.998);
    
CreateObject(37492897.8999, -1574.1215.700346.998);
    
CreateObject(37492883.5, -1570.915.700346.998);
    
CreateObject(37492462.3, -1659.118.20090);
    
CreateObject(37491533.1, -1643.318.2000);
    
CreateObject(37491529.8, -1615.918.2000);
    
CreateObject(37491524.4, -1630.218.40090);
    
CreateObject(37492186.3999, -1221.328.70090);
    
CreateObject(37492258.8999, -1220.628.70090);
    
UsePlayerPedAnims();
    
AddPlayerClass(105,2517.8335,-1676.8845,14.2800,62.7035,0,0,0,0,0,0); // SKIN GROVE
    
AddPlayerClass(106,2517.8335,-1676.8845,14.2800,62.7035,0,0,0,0,0,0); // SKIN GROVE
    
AddPlayerClass(107,2517.8335,-1676.8845,14.2800,62.7035,0,0,0,0,0,0); // SKIN GROVE
    
AddPlayerClass(102,2216.3721,-1211.6790,23.9632,172.6466,0,0,0,0,0,0); // BALLAS
    
AddPlayerClass(103,2216.3721,-1211.6790,23.9632,172.6466,0,0,0,0,0,0); // BALLAS
    
AddPlayerClass(104,2216.3721,-1211.6790,23.9632,172.6466,0,0,0,0,0,0); // BALLAS
    
AddPlayerClass(108,2917.2263,-1599.4910,14.9453,267.1283,0,0,0,0,0,0); // VAGOS
    
AddPlayerClass(109,2917.2263,-1599.4910,14.9453,267.1283,0,0,0,0,0,0); // VAGOS
    
AddPlayerClass(110,2917.2263,-1599.4910,14.9453,267.1283,0,0,0,0,0,0); // VAGOS
    
AddPlayerClass(285,1544.6368,-1631.8610,13.3828,269.2735,0,0,0,0,0,0); // policias
    
AddPlayerClass(284,1544.6368,-1631.8610,13.3828,269.2735,0,0,0,0,0,0); // policias
    
AddPlayerClass(286,1544.6368,-1631.8610,13.3828,269.2735,0,0,0,0,0,0); // policias
    
    
    
AddPlayerClass(292,1375.4188,-863.0284,41.0037,222.9273,0,0,0,0,0,0); // ADM
    
AddPlayerClass(181,1375.4188,-863.0284,41.0037,222.9273,0,0,0,0,0,0); // ADM
    
AddPlayerClass(217,1375.4188,-863.0284,41.0037,222.9273,0,0,0,0,0,0); // ADM
    
for(new iMAX_PLAYERS++)
    {
        if(
IsPlayerConnected(i))
        {
            
TextDrawShowForPlayer(iTextdraw0);
            
TextDrawShowForPlayer(iTextdraw1);
        }
    }
    return 
1;
}
public 
OnGameModeExit()
{
    return 
1;
}
//==============================================================================
//==============================================================================
public OnPlayerSpawn(playerid)
{
//==============================================================================
//COR DOS NICK
//==============================================================================
    
SendClientMessage(playerid, -1"Digite /comandos para saber os cmds do servidor");
    
SendClientMessage(playerid, -1"Nosso servidor esta na versгo beta iremos por mais coisa na v2");
    if(
GetPlayerSkin(playerid) == 105SetPlayerColor(playeridVERDE);
    if(
GetPlayerSkin(playerid) == 106SetPlayerColor(playeridVERDE);
    if(
GetPlayerSkin(playerid) == 107SetPlayerColor(playeridVERDE);
    if(
GetPlayerSkin(playerid) == 102SetPlayerColor(playeridROXO);
    if(
GetPlayerSkin(playerid) == 103SetPlayerColor(playeridROXO);
    if(
GetPlayerSkin(playerid) == 104SetPlayerColor(playeridROXO);
    if(
GetPlayerSkin(playerid) == 109SetPlayerColor(playeridAMARELO);
    if(
GetPlayerSkin(playerid) == 108SetPlayerColor(playeridAMARELO);
    if(
GetPlayerSkin(playerid) == 110SetPlayerColor(playeridAMARELO);
    if(
GetPlayerSkin(playerid) == 284SetPlayerColor(playeridAZUL);
    if(
GetPlayerSkin(playerid) == 285SetPlayerColor(playeridAZUL);
    if(
GetPlayerSkin(playerid) == 286SetPlayerColor(playeridAZUL);
//==============================================================================
//==============================================================================
    
if(GetPlayerSkin(playerid) == 105//troca o 0 pelo ID da skin que queres
   
{
      
SendClientMessage(playeridVERDE," Voce esta jogando na gangue Groove");
   }
   
   
//==============================================================================
//==============================================================================
//==============================================================================
//==============================================================================
    
if(GetPlayerSkin(playerid) == 106//troca o 0 pelo ID da skin que queres
   
{
      
SendClientMessage(playeridVERDE," Voce esta jogando na gangue Groove"); 
   }
   
   
//==============================================================================
//==============================================================================
//==============================================================================
//==============================================================================
    
if(GetPlayerSkin(playerid) == 107//troca o 0 pelo ID da skin que queres
   
{
      
SendClientMessage(playeridVERDE," Voce esta jogando na gangue Groove");
   }
//==============================================================================
//==============================================================================
    
if(GetPlayerSkin(playerid) == 102//troca o 0 pelo ID da skin que queres
   
{
      
SendClientMessage(playeridROXO," Voce esta jogando na gangue Ballas");
   }
//==============================================================================
//==============================================================================
    
if(GetPlayerSkin(playerid) == 103//troca o 0 pelo ID da skin que queres
   
{
      
SendClientMessage(playeridROXO," Voce esta jogando na gangue Ballas");
   }
//==============================================================================
//==============================================================================
    
if(GetPlayerSkin(playerid) == 104//troca o 0 pelo ID da skin que queres
   
{
      
SendClientMessage(playeridROXO,"  Voce esta jogando na gangue Ballas");
   }
//==============================================================================
//==============================================================================
    
if(GetPlayerSkin(playerid) == 110//troca o 0 pelo ID da skin que queres
   
{
      
SendClientMessage(playeridAMARELO,"  Voce esta jogando na gangue Vagos");
   }
//==============================================================================
//==============================================================================
    
if(GetPlayerSkin(playerid) == 109//troca o 0 pelo ID da skin que queres
   
{
      
SendClientMessage(playeridAMARELO,"  Voce esta jogando na gangue Vagos");
   }
//==============================================================================
//==============================================================================
    
if(GetPlayerSkin(playerid) == 108//troca o 0 pelo ID da skin que queres
   
{
      
SendClientMessage(playeridAMARELO,"  Voce esta jogando na gangue Vagos");
   }
//==============================================================================
//==============================================================================
    
if(GetPlayerSkin(playerid) == 286//troca o 0 pelo ID da skin que queres
   
{
      
SendClientMessage(playeridAZUL,"  Voce esta Na organizaзгo policial");
   }
//==============================================================================
//==============================================================================
    
if(GetPlayerSkin(playerid) == 284//troca o 0 pelo ID da skin que queres
   
{
      
SendClientMessage(playeridAZUL,"  Voce esta Na organizaзгo policial");
   }
//==============================================================================
//==============================================================================
    
if(GetPlayerSkin(playerid) == 285//troca o 0 pelo ID da skin que queres
   
{
      
SendClientMessage(playeridAZUL,"  Voce esta Na organizaзгo policial");
   }
    
GivePlayerWeapon(playerid ,29 800);
    
GivePlayerWeapon(playerid ,30 8000);
    
GivePlayerWeapon(playerid ,24 800);
    
GivePlayerWeapon(playerid ,26 80);
    
GivePlayerWeapon(playerid ,80);
    return 
1;
}
public 
OnPlayerRequestSpawn(playerid)
{
    switch(
GetPlayerSkin(playerid))
    {
        case 
292,181,271:
        {
            if(!
IsPlayerAdmin(playerid))
            {
                
SendClientMessage(playerid, -1,"Skins bloqueados. sгo exclusivamente para admins");
                return 
0;
            }
        }
    }
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
TextDrawHideForPlayer(playeridTextdraw0);
    
SetPlayerPos(playerid1026.3941, -2181.158440.8012);
    
SetPlayerInterior(playerid0);
    
SetPlayerFacingAngle(playerid1.6982);
    
SetPlayerCameraPos(playerid1022.8941, -2177.158442.3012);
    
SetPlayerCameraLookAt(playerid1027.0232, -2179.783740.4760);
    
ApplyAnimation(playerid,"DANCING","DAN_LOOP_A",4.0,1,0,0,0,-1);
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
   new 
string[128];
   
//10Mil ao matar
   
SetPlayerScore(killeridGetPlayerScore(killerid) + 1);
   
SendDeathMessage(killeridplayeridreason);
   
GameTextForPlayer(playerid"~r~Se Fodeu"80005);
   
GivePlayerMoney(killerid10000);
   
format(stringsizeof(string), "[INFO] - Voce Ganhou ao Matar um jogador Esta aqui seu dinheiro $%d."GetPlayerMoney(killerid));
   
SendClientMessage(killeridVERMELHOstring);
   return 
1// ESQUECEU AQUI EM
}
    public 
SendMensagens()
    {
    new 
string[265];
    new 
random1 random(sizeof(Mensagens));
    new 
random2 random(sizeof(Cores));
    
format(stringsizeof(string), "%s"Mensagens[random1]);
    
SendClientMessageToAll(Cores[random2],string);
    return 
1;
    }
    public 
OnPlayerCommandText(playeridcmdtext[])
    {
    
    new 
string[256];
    if (
strcmp("/online"cmdtexttrue10) == 0)
    {
        
format(stringsizeof(string), "Tem %d jogadores online"jogadoresOnline);
        
SendClientMessageToAll(VERMELHOstring);
        return 
1;
    }
    if (
strcmp("/tunar"cmdtexttrue10) == 0)
    {
        {
            {
            if(!
IsPlayerInAnyVehicle(playerid))
            {
            
SendClientMessage(playerid,VERMELHO,"[INFO] Vocк nгo consegue tunar seu prуprio corpo.");
            }
            new 
var5 0;
            
var5 GetPlayerVehicleID(playerid);
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)
            {
                
AddVehicleComponent(var51046);
                
AddVehicleComponent(var51171);
                
AddVehicleComponent(var51149);
                
AddVehicleComponent(var51035);
                
AddVehicleComponent(var51147);
                
AddVehicleComponent(var51036);
                
AddVehicleComponent(var51040);
                
ChangeVehiclePaintjob(var54);
                
ChangeVehicleColor(var566);
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51087);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
            {
                
AddVehicleComponent(var51028);
                
AddVehicleComponent(var51169);
                
AddVehicleComponent(var51141);
                
AddVehicleComponent(var51032);
                
AddVehicleComponent(var51138);
                
AddVehicleComponent(var51026);
                
AddVehicleComponent(var51027);
                
ChangeVehiclePaintjob(var50);
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51087);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 565)
            {
                
AddVehicleComponent(var51046);
                
AddVehicleComponent(var51153);
                
AddVehicleComponent(var51150);
                
AddVehicleComponent(var51054);
                
AddVehicleComponent(var51049);
                
AddVehicleComponent(var51047);
                
AddVehicleComponent(var51051);
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51087);
                
ChangeVehiclePaintjob(var54);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 559)
            {
                
AddVehicleComponent(var51065);
                
AddVehicleComponent(var51160);
                
AddVehicleComponent(var51159);
                
AddVehicleComponent(var51067);
                
AddVehicleComponent(var51162);
                
AddVehicleComponent(var51069);
                
AddVehicleComponent(var51071);
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51087);
                
ChangeVehiclePaintjob(var54);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 561)
            {
                
AddVehicleComponent(var51064);
                
AddVehicleComponent(var51155);
                
AddVehicleComponent(var51154);
                
AddVehicleComponent(var51055);
                
AddVehicleComponent(var51158);
                
AddVehicleComponent(var51056);
                
AddVehicleComponent(var51062);
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51087);
                
ChangeVehiclePaintjob(var54);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 558)
            {
                
AddVehicleComponent(var51089);
                
AddVehicleComponent(var51166);
                
AddVehicleComponent(var51168);
                
AddVehicleComponent(var51088);
                
AddVehicleComponent(var51164);
                
AddVehicleComponent(var51090);
                
AddVehicleComponent(var51094);
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51087);
                
ChangeVehiclePaintjob(var54);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 575)
            {
                
AddVehicleComponent(var51044);
                
AddVehicleComponent(var51174);
                
AddVehicleComponent(var51176);
                
AddVehicleComponent(var51042);
                
AddVehicleComponent(var51099);
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51087);
                
ChangeVehiclePaintjob(var54);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 534)
            {
                
AddVehicleComponent(var51126);
                
AddVehicleComponent(var51179);
                
AddVehicleComponent(var51180);
                
AddVehicleComponent(var51122);
                
AddVehicleComponent(var51101);
                
AddVehicleComponent(var51125);
                
AddVehicleComponent(var51123);
                
AddVehicleComponent(var51100);
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51087);
                
ChangeVehiclePaintjob(var54);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 536)
            {
                
AddVehicleComponent(var51104);
                
AddVehicleComponent(var51182);
                
AddVehicleComponent(var51184);
                
AddVehicleComponent(var51108);
                
AddVehicleComponent(var51107);
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51087);
                
ChangeVehiclePaintjob(var54);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 567)
            {
                
AddVehicleComponent(var51129);
                
AddVehicleComponent(var51189);
                
AddVehicleComponent(var51187);
                
AddVehicleComponent(var51102);
                
AddVehicleComponent(var51133);
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51087);
                
ChangeVehiclePaintjob(var54);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
            {
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51087);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51139);
                
AddVehicleComponent(var51147);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 400)
            {
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51087);
                
AddVehicleComponent(var51018);
                
AddVehicleComponent(var51013);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51086);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 444)
            {
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 556)
            {
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 557)
            {
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 401)
            {
                
AddVehicleComponent(var51086);
                
AddVehicleComponent(var51139);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51087);
                
AddVehicleComponent(var51012);
                
AddVehicleComponent(var51013);
                
AddVehicleComponent(var51042);
                
AddVehicleComponent(var51043);
                
AddVehicleComponent(var51018);
                
AddVehicleComponent(var51006);
                
AddVehicleComponent(var51007);
                
AddVehicleComponent(var51017);
            }
            if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 576)
            {
                
ChangeVehiclePaintjob(var50);
                
AddVehicleComponent(var51191);
                
AddVehicleComponent(var51193);
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51018);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51087);
                
AddVehicleComponent(var51134);
                
AddVehicleComponent(var51137);
            }
            else
            {
                
AddVehicleComponent(var51010);
                
AddVehicleComponent(var51097);
                
AddVehicleComponent(var51087);
                
                
            }
            }
        }
        return 
1;
    }
    if(
strcmp(cmdtext"/jetpack"true) == 0){
    if(!
IsPlayerInAnyVehicle(playerid)) {
    
SetPlayerSpecialAction(playerid2);
    } else {
    
SendClientMessage(playeridVERMELHO"Vocк nгo pode usar um jetpack dentro de um veнculo.");}
    return 
1;
    }
    if(!
strcmp(cmdtext"/elegy"true))
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            return 
SendClientMessage(playeridVERMELHO"Voce ja esta em um veiculo");
        }
        new 
Float:var0 0Float:var1 0Float:var2 0Float:var3 0;
        
GetPlayerPos(playeridvar0var1var2);
        
GetPlayerFacingAngle(playeridvar3);
        
CreateVehicle(562var0 1var1 1var2var31110000);//..
        
return 1;
    }
    if(!
strcmp(cmdtext"/comandos"true))
    {
    
SendClientMessage(playerid0x63E01BFF"============================ = Lista de Comandos = ================================");
    
SendClientMessage(playeridBRANCO,     "Para ver quantos players online digite /online");
    
SendClientMessage(playeridBRANCO,     "Para ver a lista de veiculos digite /veiculos");
    
SendClientMessage(playeridBRANCO,     "Para anuciar que esta doidгo digite /tocarterror");
    
SendClientMessage(playeridBRANCO,     "Para tunar seu carro digite /tunar");
    
SendClientMessage(playeridBRANCO,     "Para se matar digite  /kill");
    
SendClientMessage(playeridBRANCO,     "Para localizar alguem digite  /gps");
    
SendClientMessage(playeridBRANCO,     "Para ir no parkour digite  /parkour");
    
SendClientMessage(playeridBRANCO,     "Para Ver os criadores digite /creditos");
    
SendClientMessage(playeridBRANCO,     "Para Ver os teleportes digite /teles");
    
SendClientMessage(playerid0x63E01BFF"============================ = Lista Veiculos = ================================");
    return 
1;
    }
    if(!
strcmp(cmdtext"/teles"true))
    {
    
SendClientMessage(playerid0x63E01BFF"============================ = CREDITOS = ================================");
    
SendClientMessage(playeridBRANCO,     "/cratera /ls /lv /dp /golfe /hospital /ammu");
    
SendClientMessage(playerid0x63E01BFF"============================ = CREDITOS = ================================");
    return 
1;
    }
    if(!
strcmp(cmdtext ,"/creditos"true))
    {
    
    
    
ShowPlayerDialog(playerid0DIALOG_STYLE_MSGBOX"Creditos - [BFS] - Brazil Favela Sinistra""Servidor criado totalmente do 0 por [BFS]_Lorruan""Ok""Cancelar");
     return 
1;
    }
    
    
    if(!
strcmp(cmdtext"/veiculos"true))
    {
    
SendClientMessage(playerid0x63E01BFF"============================ = Lista Veiculos = ================================");
    
SendClientMessage(playeridBRANCO,     "Para Pegar uma , moto digite /nrg");
    
SendClientMessage(playeridBRANCO,     "Para Pegar um , infernus digite  /infernus");
    
SendClientMessage(playeridBRANCO,     "Para Pegar um , elegy digite /elegy");
    
SendClientMessage(playerid0x63E01BFF"============================ = Lista Veiculos = ================================");
    return 
1;
    }
    if(!
strcmp(cmdtext"/nrg"true))
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            return 
SendClientMessage(playeridVERMELHO"Voce ja esta em um veiculo");
        }
        new 
Float:var0 0Float:var1 0Float:var2 0Float:var3 0;
        
GetPlayerPos(playeridvar0var1var2);
        
GetPlayerFacingAngle(playeridvar3);
        
CreateVehicle(522var0 1var1 1var2var31110000);//..
        
return 1;
    }
    
    
    
    
    
    
    if(!
strcmp(cmdtext"/infernus"true))
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            return 
SendClientMessage(playeridVERMELHO"Voce ja esta em um veiculo");
        }
        new 
Float:var0 0Float:var1 0Float:var2 0Float:var3 0;
        
GetPlayerPos(playeridvar0var1var2);
        
GetPlayerFacingAngle(playeridvar3);
        
CreateVehicle(411var0 1var1 1var2var31110000);//..
        
return 1;
    }
    
    
    
    if(
strcmp(cmdtext,"/tocarterror",true)==0)
    {
     new 
player[128];
     new 
tmp[128];
     
GivePlayerWeapon(playerid,16,999);
     
GetPlayerName(playerid,player,sizeof(player));
     
format(tmp,sizeof(tmp),"Cuidado: O Player %s (%d) Ficou Doidгo Corrгo.",player,playerid);
     
SendClientMessageToAll(VERMELHO,tmp);
     return 
1;
    }
    if (
strcmp("/kill"cmdtexttrue10) == 0)
    {
    
SetPlayerHealth(playerid, -999999);
    }
    return 
1;
    } 
Reply
#2

Me parece bem simples mesmo, mas uma boa organizaзгo! Apesar de pequenas partes nгo estarem identadas, fora isso parabйns! Poderia evoluir o mesmo e postar uma super atualizaзгo...fica a dica, abraзos!

+REP
Reply
#3

Precisa de otimizacao, as textdraws n precisam ser mostradas na OnGameModeInit, e de identacao.

Tambem recomendo a usar um processador de comandos.

Para quem esta iniciando ate nao esta muito mal.
Reply
#4

Parece estar muito bom, parabйns!
Reply
#5

Lorruan se quiser parceria poderнamos criar um gamemode do tipo, sу que mais evoluнdo, abraзos!
Reply
#6

Quote:
Originally Posted by iD4N0N3_.x[X]x
Посмотреть сообщение
Lorruan se quiser parceria poderнamos criar um gamemode do tipo, sу que mais evoluнdo, abraзos!
Qual seu skype ? ou contato ?
Reply
#7

Tф com um ******** fake, clique aqui!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)