[AJUDA] (Pedido Grande)
#1

Bom gente, estou querendo, fazer umas mudaзanзas no meu Game mode sгo

adcionar /convidar e /demitir pro exe e farc e quando o cara entrar tipo aparecer ele com uma animaзгo e vocк escolhe, sua org.

e criar um salvamento, tipo se o cara escolheu farc e deslogou ele volta como farc..e o com o civil tambйm..

ai teria /promoverliderfarc(E EXE) so pra adm ai seta ele pra lider farc ai teria o membro e o lider para ter membro precisa ter lider й claro, o mesmo pro exe..
estou precisando muito disso se fizer so pra um eu uso como base para fazer o outro obrigado..

Game Mode:

pawn Код:
#include <a_samp>



//Forwards.
forward Tempo();//forward Tempo.

//Variaveis.
new Equipe[MAX_PLAYERS]; //Variбvel da equipe.
new Hospital[MAX_PLAYERS];//Varнavel do Hospital.

//fechando

//Defines

#define Civil 0  //Sнmbolo "Civil" vale 0.
#define Farc 1  //Sнmbolo "Farc" vale 1.
#define Exercito 2  //Sнmbolo "Exercito" vale 2.
#define  COR_LARANJA 0xFF5A00FF
#define  COR_VERDE   0x91FF00FF

//fechando


public OnGameModeInit()
{
    SetGameModeText("~Exe~X Farc");
    AddStaticVehicleEx(470,193.30000305,1919.30004883,17.70000076,178.00000000,-1,-1,15); //Patriot
    AddStaticVehicleEx(470,202.80000305,1919.19995117,17.70000076,180.00000000,-1,-1,15); //Patriot
    AddStaticVehicleEx(470,211.39999390,1919.30004883,17.70000076,178.00000000,-1,-1,15); //Patriot
    AddStaticVehicleEx(470,220.69999695,1919.50000000,17.70000076,178.00000000,-1,-1,15); //Patriot
    AddStaticVehicleEx(487,134.89999390,1932.40002441,19.50000000,178.00000000,102,102,15); //Maverick
    AddStaticVehicleEx(425,121.40000153,1839.69995117,18.50000000,90.00000000,-1,-1,15); //Hunter
    AddStaticVehicleEx(425,121.40000153,1851.69995117,18.50000000,88.00000000,-1,-1,15); //Hunter
    AddStaticVehicleEx(548,359.50000000,2028.50000000,28.79999924,88.00000000,-1,-1,15); //Cargobob
    AddStaticVehicleEx(520,276.60000610,1955.50000000,18.60000038,270.00000000,-1,-1,15); //Hydra
    AddStaticVehicleEx(520,276.39999390,1989.90002441,18.60000038,270.00000000,-1,-1,15); //Hydra
    AddStaticVehicleEx(520,275.39999390,2024.30004883,18.60000038,268.00000000,-1,-1,15); //Hydra
    AddStaticVehicleEx(476,300.10000610,2047.09997559,18.79999924,208.00000000,-1,-1,15); //Rustler
    AddStaticVehicleEx(476,316.39999390,2048.30004883,18.79999924,134.00000000,-1,-1,15); //Rustler
    AddStaticVehicleEx(433,328.20001221,1960.40002441,18.20000076,88.00000000,-1,-1,15); //Barracks
    AddStaticVehicleEx(433,327.29998779,1952.19995117,18.20000076,88.00000000,-1,-1,15); //Barracks
    AddStaticVehicleEx(432,329.70001221,1995.59997559,17.89999962,88.00000000,-1,-1,15); //Rhino
    AddStaticVehicleEx(432,329.50000000,1985.50000000,17.89999962,90.00000000,-1,-1,15); //Rhino
    AddStaticVehicleEx(571,-510.70001221,2549.39990234,52.70000076,0.00000000,-1,-1,15); //Kart
    AddStaticVehicleEx(571,-514.09997559,2549.50000000,52.70000076,2.00000000,-1,-1,15); //Kart
    AddStaticVehicleEx(571,-517.20001221,2549.39990234,52.70000076,0.00000000,-1,-1,15); //Kart
    AddStaticVehicleEx(571,-520.29998779,2549.39990234,52.70000076,0.00000000,-1,-1,15); //Kart
    AddStaticVehicleEx(571,-524.00000000,2549.39990234,52.70000076,0.00000000,-1,-1,15); //Kart
    AddStaticVehicleEx(571,-527.29998779,2549.39990234,52.70000076,0.00000000,-1,-1,15); //Kart
    AddStaticVehicleEx(571,-531.40002441,2549.39990234,52.70000076,0.00000000,-1,-1,15); //Kart
    AddStaticVehicleEx(571,-534.70001221,2549.50000000,52.70000076,0.00000000,-1,-1,15); //Kart
    AddStaticVehicleEx(571,-537.90002441,2549.50000000,52.70000076,0.00000000,-1,-1,15); //Kart
    AddStaticVehicleEx(571,-540.90002441,2549.19995117,52.70000076,0.00000000,-1,-1,15); //Kart
    AddStaticVehicleEx(470,-1102.30004883,-1623.09997559,76.40000153,270.00000000,-1,-1,15); //Patriot
    AddStaticVehicleEx(470,-1102.40002441,-1618.40002441,76.40000153,270.00000000,-1,-1,15); //Patriot
    AddStaticVehicleEx(476,-1106.30004883,-1651.69995117,77.50000000,268.00000000,-1,-1,15); //Rustler
    AddStaticVehicleEx(520,-1065.59997559,-1625.09997559,77.30000305,228.00000000,-1,-1,15); //Hydra
    AddStaticVehicleEx(520,-1048.50000000,-1621.19995117,77.30000305,220.00000000,-1,-1,15); //Hydra
    CreateObject(7153,355.10000610,2045.80004883,20.79999924,0.00000000,0.00000000,178.00000000); //object(shamheliprt05) (1)
    CreateObject(3268,331.20001221,1956.19995117,16.60000038,0.00000000,0.00000000,359.99450684); //object(mil_hangar1_) (1)
    CreateObject(3268,307.29998779,2049.10009766,16.39999962,0.00000000,0.00000000,89.99450684); //object(mil_hangar1_) (2)
    CreateObject(3268,331.39999390,1990.09997559,16.60000038,0.00000000,0.00000000,359.99450684); //object(mil_hangar1_) (3)
    CreateObject(2985,380.50000000,1926.09997559,18.29999924,0.00000000,0.00000000,150.00000000); //object(minigun_base) (1)
    CreateObject(12839,286.39999390,1813.19995117,20.39999962,0.00000000,0.00000000,178.00000000); //object(cos_sbanksteps02) (1)
    CreateObject(12839,285.29998779,1820.30004883,20.39999962,0.00000000,0.00000000,0.00000000); //object(cos_sbanksteps02) (2)
    CreateObject(987,-593.59997559,2565.00000000,52.50000000,0.00000000,0.00000000,2.00000000); //object(elecfence_bar) (1)
    CreateObject(987,-581.70001221,2565.30004883,52.50000000,0.00000000,0.00000000,2.00000000); //object(elecfence_bar) (2)
    CreateObject(987,-569.70001221,2565.60009766,52.50000000,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (3)
    CreateObject(987,-557.79998779,2565.50000000,52.50000000,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (4)
    CreateObject(987,-555.00000000,2565.30004883,52.59999847,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (5)
    CreateObject(987,-543.09997559,2565.19995117,52.40000153,0.00000000,0.00000000,268.00000000); //object(elecfence_bar) (6)
    CreateObject(987,-543.29998779,2559.00000000,52.40000153,0.00000000,0.00000000,268.00000000); //object(elecfence_bar) (7)
    CreateObject(987,-543.79998779,2547.10009766,52.50000000,0.00000000,0.00000000,2.00000000); //object(elecfence_bar) (8)
    CreateObject(987,-531.90002441,2547.39990234,52.50000000,0.00000000,0.00000000,2.00000000); //object(elecfence_bar) (9)
    CreateObject(987,-520.00000000,2547.60009766,52.40000153,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (10)
    CreateObject(987,-577.09997559,2621.69995117,52.59999847,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (11)
    CreateObject(987,-565.09997559,2621.50000000,52.50000000,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (12)
    CreateObject(987,-508.00000000,2547.50000000,52.40000153,0.00000000,0.00000000,88.00000000); //object(elecfence_bar) (13)
    CreateObject(987,-507.50000000,2559.50000000,52.40000153,0.00000000,0.00000000,88.00000000); //object(elecfence_bar) (14)
    CreateObject(987,-507.10000610,2571.30004883,52.40000153,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (15)
    CreateObject(987,-553.40002441,2621.50000000,52.50000000,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (16)
    CreateObject(987,-541.29998779,2621.39990234,52.50000000,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (17)
    CreateObject(987,-540.79998779,2633.50000000,52.50000000,0.00000000,0.00000000,268.00000000); //object(elecfence_bar) (18)
    CreateObject(987,-540.79998779,2639.60009766,52.40000153,0.00000000,0.00000000,268.00000000); //object(elecfence_bar) (19)
    CreateObject(987,-505.00000000,2639.60009766,52.50000000,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (20)
    CreateObject(987,-516.90002441,2639.60009766,52.50000000,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (21)
    CreateObject(987,-528.90002441,2639.60009766,52.50000000,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (22)
    CreateObject(987,-505.29998779,2627.80004883,52.40000153,0.00000000,0.00000000,88.00000000); //object(elecfence_bar) (23)
    CreateObject(987,-505.89999390,2615.80004883,52.40000153,0.00000000,0.00000000,88.00000000); //object(elecfence_bar) (24)
    CreateObject(987,-506.29998779,2603.89990234,52.40000153,0.00000000,0.00000000,88.00000000); //object(elecfence_bar) (25)
    CreateObject(1237,-505.39999390,2588.30004883,52.50000000,0.00000000,0.00000000,0.00000000); //object(strtbarrier01) (1)
    CreateObject(1237,-505.20001221,2597.39990234,52.59999847,0.00000000,0.00000000,0.00000000); //object(strtbarrier01) (2)
    CreateObject(1237,-501.10000610,2588.50000000,52.59999847,0.00000000,0.00000000,0.00000000); //object(strtbarrier01) (3)
    CreateObject(1237,-501.20001221,2597.39990234,52.59999847,0.00000000,0.00000000,0.00000000); //object(strtbarrier01) (4)
    CreateObject(1237,-496.50000000,2588.50000000,52.59999847,0.00000000,0.00000000,0.00000000); //object(strtbarrier01) (5)
    CreateObject(1237,-496.70001221,2597.39990234,52.59999847,0.00000000,0.00000000,0.00000000); //object(strtbarrier01) (6)
    CreateObject(354,-506.20001221,2592.80004883,51.09999847,0.00000000,0.00000000,172.00000000); //object(1)
    CreateObject(3749,-506.70001221,2593.39990234,58.29999924,0.00000000,0.00000000,90.00000000); //object(clubgate01_lax) (1)
    CreateObject(3475,-507.29998779,2596.10009766,54.79999924,0.00000000,0.00000000,178.00000000); //object(vgsn_fncelec_pst) (1)
    CreateObject(3475,-507.50000000,2590.30004883,54.79999924,0.00000000,0.00000000,180.00000000); //object(vgsn_fncelec_pst) (2)
    CreateObject(981,-489.20001221,2598.60009766,48.40000153,0.00000000,0.00000000,0.00000000); //object(helix_barrier) (1)
    CreateObject(981,-491.10000610,2588.10009766,48.20000076,0.00000000,0.00000000,0.00000000); //object(helix_barrier) (2)
    CreateObject(978,-501.29998779,2588.19995117,53.29999924,0.00000000,0.00000000,0.00000000); //object(sub_roadright) (1)
    CreateObject(978,-501.29998779,2597.60009766,52.90000153,0.00000000,0.00000000,180.00000000); //object(sub_roadright) (2)
    CreateObject(978,-523.79998779,2604.89990234,53.29999924,0.00000000,0.00000000,268.00000000); //object(sub_roadright) (4)
    CreateObject(978,-523.59997559,2614.30004883,53.29999924,0.00000000,0.00000000,270.00000000); //object(sub_roadright) (5)
    CreateObject(978,-523.70001221,2623.89990234,53.40000153,0.00000000,0.00000000,272.00000000); //object(sub_roadright) (6)
    CreateObject(1237,-523.29998779,2629.60009766,52.59999847,0.00000000,0.00000000,0.00000000); //object(strtbarrier01) (23)
    CreateObject(979,-508.50000000,2636.10009766,53.29999924,0.00000000,0.00000000,134.00000000); //object(sub_roadleft) (2)
    CreateObject(979,-537.29998779,2635.60009766,53.29999924,0.00000000,0.00000000,230.00000000); //object(sub_roadleft) (3)
    CreateObject(978,-524.00000000,2595.39990234,53.29999924,0.00000000,0.00000000,268.00000000); //object(sub_roadright) (7)
    CreateObject(978,-524.29998779,2586.00000000,53.29999924,0.00000000,0.00000000,268.00000000); //object(sub_roadright) (8)
    CreateObject(978,-524.59997559,2576.00000000,53.40000153,0.00000000,0.00000000,268.00000000); //object(sub_roadright) (9)
    CreateObject(978,-524.79998779,2566.60009766,53.40000153,0.00000000,0.00000000,270.00000000); //object(sub_roadright) (10)
    CreateObject(978,-524.90002441,2562.00000000,53.29999924,0.00000000,0.00000000,270.00000000); //object(sub_roadright) (11)
    CreateObject(354,-507.60000610,2635.69995117,54.00000000,0.00000000,0.00000000,0.00000000); //object(2)
    CreateObject(354,-539.09997559,2637.80004883,52.70000076,0.00000000,0.00000000,0.00000000); //object(3)
    CreateObject(987,-590.79998779,2609.89990234,52.70000076,0.00000000,0.00000000,82.00000000); //object(elecfence_bar) (29)
    CreateObject(987,-593.90002441,2576.89990234,52.59999847,0.00000000,0.00000000,272.00000000); //object(elecfence_bar) (30)
    return 1;
}


public OnGameModeExit()
{
    ShowPlayerMarkers(0);
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    return 1;
}

public OnPlayerConnect(playerid)
{
    new nome[24];
    new string[MAX_PLAYERS];
    GetPlayerName(playerid, nome, 24);
    format(string, sizeof(string), "%s Conectou ao servidor!", nome);
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    new nome[24];
    new string[MAX_PLAYERS];
    GetPlayerName(playerid, nome, 24);
    format(string, sizeof(string)," %s Saiu do servidor!", nome);
    SendClientMessageToAll(0xAAAAAAAA,string);
    return 1;
}

public OnPlayerSpawn(playerid)
{

    if(Equipe[playerid] == Civil)
    {
        SetPlayerPos(playerid,1714.08, 1602.14, 10.01);
        SetPlayerSkin(playerid,209);

    }
    else if(Equipe[playerid] == Farc)
    {
       
        SetPlayerPos(playerid,-1106.7771,-1639.0135,76);
        SetPlayerSkin(playerid,294);
   
    }
    else if(Equipe[playerid] == Exercito)
    {
        SetPlayerPos(playerid,197.6434,1813.9235,17.6406);
        SetPlayerSkin(playerid,287);
     
    }
    return 1;
}
   

public OnPlayerDeath(playerid, killerid, reason)
{
    Hospital[playerid] =1;
    return 1;
}
 

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
        new Float:p[3], s[128], n[24];
        GetPlayerName(playerid, n, 24);
        GetPlayerPos(playerid, p[0], p[1], p[2]);
        format(s, 128, "%s diz: %s", n, text);
        for(new i, j = GetMaxPlayers(); i != j; i++)
        {
        if(IsPlayerInRangeOfPoint(i, 5, p[0], p[1], p[2]))
        {
        SendClientMessage(i, -1, s);
        }
        }
        return false;
}
   

public OnPlayerCommandText(playerid, cmdtext[])
{

//Comando de rбdio

        new cmd[256],idx;
        cmd = strtok(cmdtext,idx);
     
        if(strcmp(cmd, "/r", true,2) == 0 || strcmp(cmd, "/radio", true,6) == 0)
        {
        new schat[150],noome[24];
        new length = strlen(cmdtext);
        GetPlayerName(playerid,noome,sizeof(noome));
        while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; }
        new offset = idx; new result[128];
        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; }
        result[idx - offset] = EOS;

        if(!strlen(result)) return SendClientMessage(playerid, COR_VERDE, "USE: /r [TEXTO]");

        if(Equipe[playerid] == Farc || Equipe[playerid] == Exercito)
        {

        if(Equipe[playerid] == Farc)
        {
        format(schat,sizeof(schat), "Rбdio: %s diz: %s, Cбmbio.", noome,result);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
        if(Equipe[i] == Farc) SendClientMessage(i,COR_VERDE,schat);
        }
        }
        else if(Equipe[playerid] == Exercito)
        {
        format(schat,sizeof(schat), "Rбdio: %s diz: %s, Cбmbio.", noome,result);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
        if(Equipe[i] == Exercito) SendClientMessage(i,COR_LARANJA,schat);
        }
        }
        }
        else return SendClientMessage(playerid,-COR_LARANJA,"<!> Vocк nгo pode usar esse comando.");
        return 1;
    }
//FECHANDO.

//Comandos Gerais.

       
        if(strcmp("/creditos",cmdtext,true) ==0)
        {
        SendClientMessage(playerid,COR_LARANJA,"=========Crйditos==================");
        SendClientMessage(playerid,-1,"Versгo Game Mode 1.1");
        SendClientMessage(playerid,-1,"Progamador: Pedro Shogun Crйdito total.");
        SendClientMessage(playerid,-1,"Credito Sistema de registro JFS.");
        SendClientMessage(playerid,-1,"Sistema de Spawn feito por Array editado por Pedro.");
        SendClientMessage(playerid,-1,"Sistema de Rбdio 1.1 feito por Ana_Marx e steeldark editado Por Pedro.");
        SendClientMessage(playerid,-1,"Crйditos do mapa a Brian Oconer/Danilo.");
        SendClientMessage(playerid,-1,"Crйditos do sistema de Administrador JFS editado.");
        return 1;
}
//fechando


        if(strcmp("/pedircontas",cmdtext,true) ==0)
        {
        if(Equipe[playerid] == Civil) return SendClientMessage(playerid,-1,"<!> Vocк jб й civil."); //Checa se o jogador й civil, se for, para o comando e manda uma mensagem.
        Equipe[playerid] = Civil; //Torna o jogador que digitou o comando um civil.
        SetPlayerSkin(playerid,7);
        SendClientMessage(playerid,-1,"<!> Vocк saiu de sua organizaзгo.");
        SetPlayerPos(playerid,1714.08, 1602.14, 10.01);
        return 1;
}
//fechando
//=======================================================//Comandos Exйrcito=====================================================//



        if(strcmp("/ajudaexe",cmdtext,true) ==0)
        {
        if(Equipe[playerid] != Exercito) return SendClientMessage(playerid,-1,"<!> Vocк nгo й do exercito.");
        SendClientMessage(playerid,-COR_LARANJA,"<!> Lista de comando exйrcito");
        SendClientMessage(playerid,-1,"/equipar1 /equipar2  /dominar.");
        return 1;
}

        if(strcmp("/equipar 1",cmdtext,true) ==0)
        {
        if(!IsPlayerInRangeOfPoint(playerid, 7.0, 211.6514,1812.0859,21.8594)) return SendClientMessage(playerid,-1,"<!> Vocк nгo estб no Armazйn de Armas.");
        {
        if(Equipe[playerid] != Exercito) return SendClientMessage(playerid,-1,"<!> Vocк nгo й do exйrcito."); //Checa se o jogador nгo й do exйrcito, se isso for verdade, para o comando e manda uma mensagem.
        ResetPlayerWeapons(playerid);
        SendClientMessage(playerid,-COR_VERDE,"<!> Vocк pegou seus equipamentos de Infantaria");
        GivePlayerWeapon(playerid,31,250);
        GivePlayerWeapon(playerid,23,200);
        SetPlayerHealth(playerid,35);
        SetPlayerArmour(playerid,35);
        }
        return 1;
}
        if(strcmp("/equipar 2",cmdtext,true) ==0)
        {
        if(!IsPlayerInRangeOfPoint(playerid, 7.0, 211.6514,1812.0859,21.8594)) return SendClientMessage(playerid,-1,"<!> Vocк nгo estб no Armazйn.");
        {
        if(Equipe[playerid] != Exercito) return SendClientMessage(playerid,-1,"<!> Vocк nгo й do exйrcito."); //Checa se o jogador nгo й do exйrcito, se isso for verdade, para o comando e manda uma mensagem.
        ResetPlayerWeapons(playerid);
        SendClientMessage(playerid,-COR_VERDE,"<!> Vocк pegou seus equipamentos de Atirador de Elite.");
        GivePlayerWeapon(playerid,34,50);
        GivePlayerWeapon(playerid,23,200);
        SetPlayerHealth(playerid,35);
        SetPlayerArmour(playerid,35);
        }
        return 1;
}

        if(strcmp("/exe",cmdtext,true) ==0)
        {
        if(Equipe[playerid] == Exercito) return SendClientMessage(playerid,-1,"<!> Vocк jб й do exйrcito."); //Checa se o jogador й do exйrcito, se for, para o comando e manda uma mensagem.
        Equipe[playerid] = Exercito; //Torna o jogador que digitou o comando membro do exйrcito.
        ResetPlayerWeapons(playerid);
        SetPlayerSkin(playerid,287);
        SetPlayerPos(playerid,197.6434,1813.9235,17.6406);
        SendClientMessage(playerid,-1,"<!> Vocк Virou exйrcito");
        return 1;
}
        if(strcmp("/Dominar",cmdtext,true) ==0)
        {
        if(Equipe[playerid] != Exercito) return SendClientMessage(playerid,-1,"<!> Vocк nгo й do exйrcito."); //Checa se o jogador nгo й do exйrcito, se isso for verdade, para o comando e manda uma mensagem
        SendClientMessageToAll(-1,"==================Anuncio Governamental=======================");
        SendClientMessageToAll(-COR_VERDE,"Exйrcito Irб atacar EL'Quebrados.");
        return 1;
}
//==========================================Fechando os Comandos do exйrcito================================================================//

 //========================================Comandos FARC.===================================================================================/

        if(strcmp("/ajudaf",cmdtext,true) ==0)
        {
        if(Equipe[playerid] != Farc) return SendClientMessage(playerid,-1,"<!> Vocк nгo й da farc.");
        SendClientMessage(playerid,-COR_LARANJA,"<!> Lista de comandos da Farc.");
        SendClientMessage(playerid,-1,"/farc1 /farc2  /atacar .");
        return 1;
}
        if(strcmp("/farc 1",cmdtext,true) ==0)
        {
        if(!IsPlayerInRangeOfPoint(playerid, 7.0, -1107.1281,-1638.4855,76.3672)) return SendClientMessage(playerid,-1,"Vocк nгo estб no asernal das FARC");
        {
        if(Equipe[playerid] != Farc) return SendClientMessage(playerid,-1,"<!> Vocк nгo й da farc."); //Checa se o jogador nгo й da farc, se isso for verdade, para o comando e manda uma mensagem.
        ResetPlayerWeapons(playerid);
        SendClientMessage(playerid,COR_VERDE,"<!> Vocк pegou seus equipamentos de Infantaria.");
        GivePlayerWeapon(playerid,30,250);
        GivePlayerWeapon(playerid,23,200);
        SetPlayerHealth(playerid,35);
        SetPlayerArmour(playerid,35);
        }
        return 1;
}
        if(strcmp("/farc 2",cmdtext,true) ==0)
        {
        if(IsPlayerInRangeOfPoint(playerid, 7.0, -1107.1281,-1638.4855,76.3672)) return SendClientMessage(playerid,-COR_VERDE,"Vocк nгo estб no asernal das FARC!");
        {
        if(Equipe[playerid] != Farc) return SendClientMessage(playerid,-1,"<!> Vocк nгo й da farc."); //Checa se o jogador nгo й da farc, se isso for verdade, para o comando e manda uma mensagem.
        ResetPlayerWeapons(playerid);
        SendClientMessage(playerid,-COR_VERDE,"<!> Vocк pegou seus equipamentos de Atirador de Elite.");
        GivePlayerWeapon(playerid,34,50);
        GivePlayerWeapon(playerid,23,150);
        return 1;
        }
}
        if(strcmp("/ATACAR",cmdtext,true) ==0)
        {
        if(Equipe[playerid] != Farc) return SendClientMessage(playerid,-1,"<!> Vocк nгo й da farc."); //Checa se o jogador nгo й da farc, se isso for verdade, para o comando e manda uma mensagem.
        SendClientMessageToAll(-1,"====================Anuncio terrorista===========================");
        SendClientMessageToAll(COR_LARANJA,"FARC Irб atacar EL Quebrados");
        return 1;

}
        if (strcmp("/FARC", cmdtext, true, 10) == 0)
        {
        if(Equipe[playerid] == Farc) return SendClientMessage(playerid,-1,"<!> Vocк jб й da farc."); //Checa se o jogador й da farc, se for
        Equipe[playerid] = Farc; //Torna o jogador que digitou o comando membro da farc.
        ResetPlayerWeapons(playerid);
        SetPlayerPos(playerid,-1106.7771,-1639.0135,76);
        SetPlayerSkin(playerid,294);
        SendClientMessage(playerid,-1,"<!> Vocк virou um farc.");
        return 1;
}
        return SendClientMessage(playerid,-1,"[ERRO] Comando Invбlido!");
}


//===================================Fechando Comandos FARC================================================================================//
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    SendClientMessage(playerid,-1,"Vocк entrou no veiculo diriga com cuidado.");
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    SendClientMessage(playerid,-1,"Vocк saiu do veiculo.");
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(Hospital[playerid] == 1)
    {
        SetPlayerPos(playerid, 1605.7870,1816.3602,10.8203);
        TogglePlayerControllable(playerid, false);
        SetTimerEx("Curando", 15000, false, "i", playerid);
        SendClientMessage(playerid, 0xFF3030FF,"[Hospital] Vocк estб sendo curado.");
        // Vocк pode acrescentar mais coisas ao seu gosto.
    }
    return 1;
}
//Strock Rбdio.
strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
//fechando

// Sistema tempo.
public Tempo()
{
    new t[3];
    gettime(t[0], t[1], t[2]);
    SetWorldTime(t[0]);
    return true;
}
//Fechando.

forward Curando(playerid);
public Curando(playerid)
{
    TogglePlayerControllable(playerid, true);
    Hospital[playerid] = 0;
    SetPlayerPos(playerid, 1640.2375,1763.9171,10.8203);
    GivePlayerMoney(playerid, -200);
    SendClientMessage(playerid, 0xFF3030FF,"[HP-Andreas] Vocк rebeu alta e pagou 200 reias, pela consulta.");
}
Reply
#2

Tб zuando?
Reply
#3

Quote:
Originally Posted by Los
Посмотреть сообщение
Tб zuando?
se eu estivesse zuando nгo postaria o cуdigo se postei aqui й por que preciso de ajuda, nгo quer ajudar ou
explicar por favor nгo comente nгo leve a mal o post.
Reply
#4

Quote:
Originally Posted by Los
Посмотреть сообщение
Tб zuando?
kkkkkkkkkkkkkkkkk

________________________
QUER UM GAMEMODE? UM FILTERSCRIPT? UM MOD? AJUDA?
VISITE-NOS: http://www.sampknd.blogspot.com.br/


QUER UM HOST DE QUALIDADE E NГO ACHA?
AQUI ESTБ: http://www.hosterbrasil.com/


Reply
#5

Vai um Cafйzinho ae ?

Use DOF2 ou SII para Fazer o salvamento tme muitos tutoriais aqui
Reply
#6

tenso a cada topico que passa dele eu tiro uma conclusao:

se continuar assim vamos ter um gm batizado como (The Forum SA-MP)
Reply
#7

Ai como eu dou risada aqui vei kkkkkkkkkkkkkkkkkkkk
________________________
QUER UM GAMEMODE? UM FILTERSCRIPT? UM MOD? AJUDA?
VISITE-NOS: http://www.sampknd.blogspot.com.br/


QUER UM HOST DE QUALIDADE E NГO ACHA?
AQUI ESTБ: http://www.hosterbrasil.com/


Reply
#8

a quer saber mano? nгo precisa mais tambйm eu tento me virar, sozinho valeu pela intenзгo.
Reply
#9

Quote:
Originally Posted by Pedro Pawno
Посмотреть сообщение
a quer saber mano? nгo precisa mais tambйm eu tento me virar, sozinho valeu pela intenзгo.
Mano com Os Tutoriais e Todos os Tуpicos relacionando a Isso voce Pode aprender algo neles =)

Tem muitos , e Acho que si voce estudar eles vai saber como fazer voce mesmo
й serio..

@OFF
Nem quis tomar um Cafйzinho Comigo ?
;( Fiquei triste -q
Reply
#10

Quote:
Originally Posted by Pedro Pawno
Посмотреть сообщение
a quer saber mano? nгo precisa mais tambйm eu tento me virar, sozinho valeu pela intenзгo.
Ei maninho nao te ofendi tб? to dando risada mas й das respostas dos caras
por que afinal de contas eu nгo sou ninguem pra criticar seu post

________________________
QUER UM GAMEMODE? UM FILTERSCRIPT? UM MOD? AJUDA?
VISITE-NOS: http://www.sampknd.blogspot.com.br/


QUER UM HOST DE QUALIDADE E NГO ACHA?
AQUI ESTБ: http://www.hosterbrasil.com/


Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)