[Ajuda]Biz Casino
#1

Boas, ja tive a procura na parte inglesa espanhola e portuguesa e nao encontrei uma biz do casino de las venturas, eu ja vi isso em alguns serveres se me pudesem ajudar agradecia.
Reply
#2

Se vocк jб tiver um sistema de bizz, basta criar o cassino com base em uma outra empresa.

Bem, fiz um FS pra resolver o seu problema

pawn Код:
#include "a_samp.inc"

new bool:CassinoAberto;
#define CASSINO_PRECO 2500  //Mude "2500", pelo preзo do cassino


public OnFilterScriptInit()
{
    print("\n***---------------------------------***\n");
    print(" Cassino Empresa - Produtor: [iPs]Ken   \n");
    print("***---------------------------------***\n");
    new Texto3D[45];
    format(Texto3D,45,"\nPreзo: %d, use /comprarcassino !", CASSINO_PRECO);
    CreatePickup(1272, 23, 2019.8138,1007.6473,10.8203, 0);
    Create3DTextLabel(Texto3D, 0x8D8DFFAA, 2019.8138,1007.6473,10.8203, 50, 0);
    Create3DTextLabel("Aperte F para entrar !", 0x8D8DFFAA, 2019.8138,1007.6473,10.8203, 50, 0);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/comprarcassino", cmdtext, true, 15) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 2019.8138,1007.6473,10.8203))
        {
            if(GetPlayerMoney(playerid) < CASSINO_PRECO)
            {
                return SendClientMessage(playerid, 0xFFFF00AA, "Vocк nгo tem dinheiro pra comprar o Cassino !");
            }
            GivePlayerMoney(playerid, -CASSINO_PRECO);
            CassinoAberto = true;
            SendClientMessage(playerid, 0xFFFF00AA, "Parabйns :P, vocк comprou o Cassino !");
            return 1;
        }
    }
    return 0;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == 16 && IsPlayerInRangeOfPoint(playerid, 3.0, 2019.8138,1007.6473,10.8203))
    {
        if(CassinoAberto) SetPlayerPos(playerid, 2015.4500,1017.0900,996.8750), SetPlayerInterior(playerid, 10);
        else if(!CassinoAberto) return SendClientMessage(playerid, 0xFFFF00AA, "Cassino Trancado !");
    }
    if(newkeys == 16 && IsPlayerInRangeOfPoint(playerid, 3.0, 2015.4500,1017.0900,996.8750))
    {
        SetPlayerPos(playerid, 2019.8138,1007.6473,10.8203), SetPlayerInterior(playerid, 0);
    }
    return 1;
}


public OnFilterScriptExit()
{
    return 1;
}

Espero ter ajudado
Reply
#3

obrigado mas eu comprei e ainda fica o icon da biz de venda :S

e como abro a biz ?

agradeзo
Reply
#4

Quote:
Originally Posted by [Dk]TuReTOo
Посмотреть сообщение
obrigado mas eu comprei e ainda fica o icon da biz de venda :S

e como abro a biz ?

agradeзo
Pronto

pawn Код:
#include "a_samp.inc"

new bool:CassinoAberto;
new PickupCassino;
new DonoDoCassino[MAX_PLAYER_NAME];
#define CASSINO_PRECO 2500  //Mude "2500", pelo preзo do cassino


public OnFilterScriptInit()
{
    print("\n***---------------------------------***\n");
    print(" Cassino Empresa - Produtor: [iPs]Ken   \n");
    print("***---------------------------------***\n");
    new Texto3D[45];
    format(Texto3D,45,"\nPreзo: %d, use /comprarcassino !", CASSINO_PRECO);
    PickupCassino = CreatePickup(1272, 23, 2019.8138,1007.6473,10.8203, 0);
    Create3DTextLabel(Texto3D, 0x8D8DFFAA, 2019.8138,1007.6473,10.8203, 50, 0);
    Create3DTextLabel("Aperte F para entrar !", 0x8D8DFFAA, 2019.8138,1007.6473,10.8203, 50, 0);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/comprarcassino", cmdtext, true, 15) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 2019.8138,1007.6473,10.8203))
        {
            if(GetPlayerMoney(playerid) < CASSINO_PRECO)
            {
                return SendClientMessage(playerid, 0xFFFF00AA, "Vocк nгo tem dinheiro pra comprar o Cassino !");
            }
            new Nick[MAX_PLAYER_NAME];
            GivePlayerMoney(playerid, -CASSINO_PRECO);
            CassinoAberto = true;
            GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
            format(DonoDoCassino, MAX_PLAYER_NAME, Nick);
            DestroyPickup(PickupCassino);
            PickupCassino = CreatePickup(1239, 23, 2019.8138,1007.6473,10.8203, 0);
            SendClientMessage(playerid, 0xFFFF00AA, "Parabйns :P, vocк comprou o Cassino !");
            return 1;
        }
    }
    if(strcmp("/trancarcassino", cmdtext, true, 15) == 0)
    {
        new Nick[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
        if(strcmp(Nick,DonoDoCassino,true)==0)
        {
            CassinoAberto = true;
            SendClientMessage(playerid, 0xFFFF00AA, "Parabйns :P, vocк trancou o Cassino !");
        }
        return 1;
    }
    if(strcmp("/vendercassino", cmdtext, true, 14) == 0)
    {
        new Nick[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
        if(strcmp(Nick,DonoDoCassino,true)==0)
        {
            CassinoAberto = true;
            DestroyPickup(PickupCassino);
            PickupCassino = CreatePickup(1272, 23, 2019.8138,1007.6473,10.8203, 0);
            SendClientMessage(playerid, 0xFFFF00AA, "Parabйns :P, vocк vendeu o Cassino !");
        }
        return 1;
    }
    if(strcmp("/abrircassino", cmdtext, true, 13) == 0)
    {
        new Nick[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
        if(strcmp(Nick,DonoDoCassino,true)==0)
        {
            CassinoAberto = false;
            SendClientMessage(playerid, 0xFFFF00AA, "Parabйns :P, vocк vendeu o Cassino !");
        }
        return 1;
    }
    return 0;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == 16 && IsPlayerInRangeOfPoint(playerid, 3.0, 2019.8138,1007.6473,10.8203))
    {
        if(CassinoAberto) SetPlayerPos(playerid, 2015.4500,1017.0900,996.8750), SetPlayerInterior(playerid, 10);
        else if(!CassinoAberto) return SendClientMessage(playerid, 0xFFFF00AA, "Cassino Trancado !");
    }
    if(newkeys == 16 && IsPlayerInRangeOfPoint(playerid, 3.0, 2015.4500,1017.0900,996.8750))
    {
        SetPlayerPos(playerid, 2019.8138,1007.6473,10.8203), SetPlayerInterior(playerid, 0);
    }
    return 1;
}


public OnFilterScriptExit()
{
    return 1;
}

Espero ter ajudado
Reply
#5

manuh o cassino nao abre tipo fasso /abrircassino e dis "Parabйns :P, vocк vendeu o Cassino !"
Reply
#6

Falta de atenзгo owna.
pawn Код:
#include "a_samp.inc"

new bool:CassinoAberto;
new PickupCassino;
new DonoDoCassino[MAX_PLAYER_NAME];
#define CASSINO_PRECO 2500  //Mude "2500", pelo preзo do cassino


public OnFilterScriptInit()
{
    print("\n***---------------------------------***\n");
    print(" Cassino Empresa - Produtor: [iPs]Ken   \n");
    print("***---------------------------------***\n");
    new Texto3D[45];
    format(Texto3D,45,"\nPreзo: %d, use /comprarcassino !", CASSINO_PRECO);
    PickupCassino = CreatePickup(1272, 23, 2019.8138,1007.6473,10.8203, 0);
    Create3DTextLabel(Texto3D, 0x8D8DFFAA, 2019.8138,1007.6473,10.8203, 50, 0);
    Create3DTextLabel("Aperte F para entrar !", 0x8D8DFFAA, 2019.8138,1007.6473,10.8203, 50, 0);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/comprarcassino", cmdtext, true, 15) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 2019.8138,1007.6473,10.8203))
        {
            if(GetPlayerMoney(playerid) < CASSINO_PRECO)
            {
                return SendClientMessage(playerid, 0xFFFF00AA, "Vocк nгo tem dinheiro pra comprar o Cassino !");
            }
            new Nick[MAX_PLAYER_NAME];
            GivePlayerMoney(playerid, -CASSINO_PRECO);
            CassinoAberto = true;
            GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
            format(DonoDoCassino, MAX_PLAYER_NAME, Nick);
            DestroyPickup(PickupCassino);
            PickupCassino = CreatePickup(1239, 23, 2019.8138,1007.6473,10.8203, 0);
            SendClientMessage(playerid, 0xFFFF00AA, "Parabйns :P, vocк comprou o Cassino !");
            return 1;
        }
    }
    if(strcmp("/trancarcassino", cmdtext, true, 15) == 0)
    {
        new Nick[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
        if(strcmp(Nick,DonoDoCassino,true)==0)
        {
            CassinoAberto = true;
            SendClientMessage(playerid, 0xFFFF00AA, "Parabйns :P, vocк trancou o Cassino !");
        }
        return 1;
    }
    if(strcmp("/vendercassino", cmdtext, true, 14) == 0)
    {
        new Nick[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
        if(strcmp(Nick,DonoDoCassino,true)==0)
        {
            CassinoAberto = true;
            DestroyPickup(PickupCassino);
            PickupCassino = CreatePickup(1272, 23, 2019.8138,1007.6473,10.8203, 0);
            SendClientMessage(playerid, 0xFFFF00AA, "Parabйns :P, vocк vendeu o Cassino !");
        }
        return 1;
    }
    if(strcmp("/abrircassino", cmdtext, true, 13) == 0)
    {
        new Nick[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
        if(strcmp(Nick,DonoDoCassino,true)==0)
        {
            CassinoAberto = false;
            SendClientMessage(playerid, 0xFFFF00AA, "Cassino Aberto !");
        }
        return 1;
    }
    return 0;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == 16 && IsPlayerInRangeOfPoint(playerid, 3.0, 2019.8138,1007.6473,10.8203))
    {
        if(CassinoAberto) SetPlayerPos(playerid, 2015.4500,1017.0900,996.8750), SetPlayerInterior(playerid, 10);
        else if(!CassinoAberto) return SendClientMessage(playerid, 0xFFFF00AA, "Cassino Trancado !");
    }
    if(newkeys == 16 && IsPlayerInRangeOfPoint(playerid, 3.0, 2015.4500,1017.0900,996.8750))
    {
        SetPlayerPos(playerid, 2019.8138,1007.6473,10.8203), SetPlayerInterior(playerid, 0);
    }
    return 1;
}


public OnFilterScriptExit()
{
    return 1;
}
Reply
#7

eu fasso /abrircassino e ele diz cassino aberto mas carrego no F e dis ke ta trancado, nгo da pa tar sempre aberto ?
Reply
#8

Pow Cara aprende a se virar aff --'

pawn Код:
#include "a_samp.inc"

new bool:CassinoAberto;
new PickupCassino;
new DonoDoCassino[MAX_PLAYER_NAME];
#define CASSINO_PRECO 2500  //Mude "2500", pelo preзo do cassino


public OnFilterScriptInit()
{
    print("\n***---------------------------------***\n");
    print(" Cassino Empresa - Produtor: [iPs]Ken   \n");
    print("***---------------------------------***\n");
    new Texto3D[45];
    format(Texto3D,45,"\nPreзo: %d, use /comprarcassino !", CASSINO_PRECO);
    PickupCassino = CreatePickup(1272, 23, 2019.8138,1007.6473,10.8203, 0);
    Create3DTextLabel(Texto3D, 0x8D8DFFAA, 2019.8138,1007.6473,10.8203, 50, 0);
    Create3DTextLabel("Aperte F para entrar !", 0x8D8DFFAA, 2019.8138,1007.6473,10.8203, 50, 0);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/comprarcassino", cmdtext, true, 15) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 2019.8138,1007.6473,10.8203))
        {
            if(GetPlayerMoney(playerid) < CASSINO_PRECO)
            {
                return SendClientMessage(playerid, 0xFFFF00AA, "Vocк nгo tem dinheiro pra comprar o Cassino !");
            }
            new Nick[MAX_PLAYER_NAME];
            GivePlayerMoney(playerid, -CASSINO_PRECO);
            CassinoAberto = true;
            GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
            format(DonoDoCassino, MAX_PLAYER_NAME, Nick);
            DestroyPickup(PickupCassino);
            PickupCassino = CreatePickup(1239, 23, 2019.8138,1007.6473,10.8203, 0);
            SendClientMessage(playerid, 0xFFFF00AA, "Parabйns :P, vocк comprou o Cassino !");
            return 1;
        }
    }
    if(strcmp("/trancarcassino", cmdtext, true, 15) == 0)
    {
        new Nick[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
        if(strcmp(Nick,DonoDoCassino,true)==0)
        {
            CassinoAberto = true;
            SendClientMessage(playerid, 0xFFFF00AA, "Parabйns :P, vocк trancou o Cassino !");
        }
        return 1;
    }
    if(strcmp("/vendercassino", cmdtext, true, 14) == 0)
    {
        new Nick[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
        if(strcmp(Nick,DonoDoCassino,true)==0)
        {
            CassinoAberto = true;
            DestroyPickup(PickupCassino);
            PickupCassino = CreatePickup(1272, 23, 2019.8138,1007.6473,10.8203, 0);
            SendClientMessage(playerid, 0xFFFF00AA, "Parabйns :P, vocк vendeu o Cassino !");
        }
        return 1;
    }
    if(strcmp("/abrircassino", cmdtext, true, 13) == 0)
    {
        new Nick[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
        if(strcmp(Nick,DonoDoCassino,true)==0)
        {
            CassinoAberto = true; //Se aqui ta false = 0 muda pra true = 1
            SendClientMessage(playerid, 0xFFFF00AA, "Cassino Aberto!");
        }
        return 1;
    }
    return 0;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == 16 && IsPlayerInRangeOfPoint(playerid, 3.0, 2019.8138,1007.6473,10.8203))
    {
        if(CassinoAberto) SetPlayerPos(playerid, 2015.4500,1017.0900,996.8750), SetPlayerInterior(playerid, 10);
        else if(!CassinoAberto) return SendClientMessage(playerid, 0xFFFF00AA, "Cassino Trancado !");
    }
    if(newkeys == 16 && IsPlayerInRangeOfPoint(playerid, 3.0, 2015.4500,1017.0900,996.8750))
    {
        SetPlayerPos(playerid, 2019.8138,1007.6473,10.8203), SetPlayerInterior(playerid, 0);
    }
    return 1;
}


public OnFilterScriptExit()
{
    return 1;
}
Reply
#9

Nгo presevi :S so tenho pouco tempo de pawn, voces tenhem anos, tenho de meter o que ? e a ode ?
Reply
#10

Reveja o codigo na parte /abricassino.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)