[GameMode] lutas com arma
#1

Um gm de lutas com armas.

meus codigos do jogos sao estes:

pawn Code:
#include <a_samp>

#define Verde        0x00FF00FF
#define vermelho    0xFF0000AA
#define Azul        0x0000FFAA
#define Marron      0x804000AA
#define Branco      0xFFFFFFAA
#define Laranja      0xFF8000AA
#define Azul_Marinho 0x80FFFFAA
#define Cinza        0xC0C0C0AA
#define Rosa        0xFF80FFAA
#define Azul_Claro  0x80BFFFAA
#define Verde_Escuro 0x007138AA
#define Amarelo      0xFFFF00AA
#define Roxo        0x9F009FAA

main()
{
    print("\n---------------------------------------");
    print("guera do felipe comecado - servidor samp\n");
    print("---------------------------------------\n");

                                                  //object(vgsfrates06) (1)
    CreateObject(8077,2786.79541016,-1456.82580566,69.85859680,0.00000000,0.00000000,0.00000000);
                                                  //object(vgsfrates06) (2)
    CreateObject(8077,2786.61035156,-1436.93151855,69.85859680,0.00000000,0.00000000,0.00000000);
                                                  //object(vgsfrates06) (3)
    CreateObject(8077,2776.67504883,-1423.94909668,69.85859680,0.00000000,0.00000000,88.00000000);
                                                  //object(vgsfrates06) (4)
    CreateObject(8077,2757.23852539,-1423.27331543,69.85859680,0.00000000,0.00000000,87.99499512);
                                                  //object(vgsfrates06) (5)
    CreateObject(8077,2757.23828125,-1423.27246094,69.85859680,0.00000000,0.00000000,87.99499512);
                                                  //object(vgsfrates06) (6)
    CreateObject(8077,2742.27172852,-1452.71374512,68.60859680,0.00000000,0.00000000,181.99505615);
                                                  //object(vgsfrates06) (7)
    CreateObject(8077,2741.97851562,-1436.32873535,68.60859680,0.00000000,0.00000000,179.99255371);
                                                  //object(vgsfrates06) (8)
    CreateObject(8077,2742.81713867,-1467.61779785,68.60859680,0.00000000,0.00000000,181.99253845);
                                                  //object(vgsfrates06) (9)
    CreateObject(8077,2757.60839844,-1479.50463867,68.60859680,0.00000000,356.00000000,269.98852539);
                                                  //object(vgsfrates06) (10)
    CreateObject(8077,2776.11791992,-1479.52307129,68.60859680,0.00000000,355.99548340,269.98352051);
                                                  //object(vgsfrates06) (11)
    CreateObject(8077,2787.14770508,-1474.41687012,69.60856628,0.00000000,359.99548340,1.98355103);
                                                  //object(missile_05_sfxr) (1)
    CreateObject(3786,2775.66040039,-1462.80029297,66.34163666,0.00000000,0.00000000,0.00000000);
                                                  //object(missile_05_sfxr) (2)
    CreateObject(3786,2770.78613281,-1445.79199219,66.34163666,0.00000000,0.00000000,0.00000000);
                                                  //object(missile_05_sfxr) (3)
    CreateObject(3786,2778.41333008,-1453.94042969,66.34163666,0.00000000,0.00000000,0.00000000);
                                                  //object(missile_05_sfxr) (4)
    CreateObject(3786,2765.75805664,-1455.02392578,66.34163666,0.00000000,0.00000000,0.00000000);
                                                  //object(missile_05_sfxr) (5)
    CreateObject(3786,2777.72753906,-1439.18627930,66.34163666,0.00000000,0.00000000,0.00000000);
                                                  //object(missile_05_sfxr) (6)
    CreateObject(3786,2755.77758789,-1443.40075684,66.34163666,0.00000000,0.00000000,0.00000000);
                                                  //object(missile_05_sfxr) (7)
    CreateObject(3786,2752.12744141,-1459.99365234,66.34163666,0.00000000,0.00000000,0.00000000);
                                                  //object(missile_05_sfxr) (8)
    CreateObject(3786,2752.12744141,-1459.99365234,66.34163666,0.00000000,0.00000000,0.00000000);

    return 1;
}


public OnPlayerConnect(playerid)
{
    SetPlayerColor(playerid, Verde_Escuro);
    SendClientMessage(playerid,Azul_Marinho,"olб seja bem vindo ao server do felipe irmгo de Drakins");
    SendClientMessage(playerid,Laranja,"vocк vai ser telestransportado au uma guerra");
    SendClientMessage(playerid,Azul_Claro ,"digite /quit1 para o primeiro quit de armas e /quit2 para o segundo e /quit3 para o terceiro  e /morre para ir morre");

    return 1;
}


public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid,2786.79541020,-1460.82580566,69.85859680);
    SendClientMessage(playerid,Amarelo,"digite /quit1 para o primeiro quit de armas e /quit2 para o segundo e /quit3 para o terceiro e /morre para ir morre");
    SetPlayerArmour(playerid,100.0);
    return 1;
}


public OnPlayerCommandText(playerid,cmdtext[])
{
    if(!strcmp(cmdtext,"/morre",true)) {
        SetPlayerHealth(playerid,0.0);
        return 1;
    }
    if(!strcmp(cmdtext,"/ok",true)) {
        SendClientMessage(playerid,Verde,"O seu player й  o vensedor e por isso guanhara 90000000");
        GivePlayerMoney(playerid,90000000);
        return 1;
    }
    if(!strcmp(cmdtext,"/quit1",true)) {
        GivePlayerWeapon(playerid,17,99999);
        GivePlayerWeapon(playerid,8,99999);
        GivePlayerWeapon(playerid,31,99999);
        GivePlayerWeapon(playerid,33,99999);

        return 1;
    }
    if(!strcmp(cmdtext,"/quit2",true)) {
        GivePlayerWeapon(playerid,32,99999);
        GivePlayerWeapon(playerid,16,99999);
        GivePlayerWeapon(playerid,29,99999);
        GivePlayerWeapon(playerid,31,99999);
        return 1;
    }
    if(!strcmp(cmdtext,"/quit3",true)) {
        GivePlayerWeapon(playerid,26,99999);
        GivePlayerWeapon(playerid,30,99999);
        GivePlayerWeapon(playerid,34,99999);
        GivePlayerWeapon(playerid,42,99999);
        return 1;
    }
    return 0;
}
os comandos de armas sao

/quit3
para armas 3

/quit2
para armas 2

/quit1
para armas 1

para morrer й /morre

Criadores SmallMoke e [iPs]DraKiNs
mapas de lutas criado por felipe silva smallmoke
con novas cores por causa do guh!
e arrumador de erros bruno silva o drkains
Reply


Messages In This Thread
lutas com arma - by SmallMoke - 05.04.2011, 21:33
Re: lutas com arma - by [R] ousenber [K] - 05.04.2011, 21:43
Re: lutas com arma - by Chefгo - 05.04.2011, 22:01
Re: lutas com arma - by [R] ousenber [K] - 05.04.2011, 22:06
Re: lutas com arma - by Macintosh - 05.04.2011, 22:09
Re: lutas com arma - by Chefгo - 05.04.2011, 22:10
Re: lutas com arma - by [R] ousenber [K] - 05.04.2011, 22:12
Re: lutas com arma - by Chefгo - 05.04.2011, 22:14
Re: lutas com arma - by SmallMoke - 05.04.2011, 22:19
Re: lutas com arma - by [R] ousenber [K] - 05.04.2011, 22:24

Forum Jump:


Users browsing this thread: 1 Guest(s)