06.02.2011, 11:21
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.
#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;
}
obrigado mas eu comprei e ainda fica o icon da biz de venda :S
e como abro a biz ? agradeзo |
#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;
}
#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;
}
#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;
}