-
Posts
23 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by BetoAndrey
-
-
Urat gm
-
-
Bun, bv!
-
Poze? Din ce GM este inceput?
-
Napsa
-
Din cauza conexiunii de net, am patit si eu.
-
Ma doar fix in p**a de Awake, am GM-ul dar nu mai am baza de date....
-
Salut, are cineva baza de date de la gm-ul VirtualGame RPG a lui FuNNkY?
-
M-a ajutat @AlexRYA
-
BUYHOUSE
CMD:buyhouse(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai.");
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz,string[100],playername[MAX_PLAYER_NAME],sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
for(new h = 1; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0)
{
if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel])
{
format(string, sizeof(string), "You must be Level %d to purchase this.", HouseInfo[h][hLevel]);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(PlayerInfo[playerid][pPhousekey] != 999 && strcmp(GetName(playerid), HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: You already own a house, type /sellhouse if you want to buy this one.");
if(GetPlayerCash(playerid) >= HouseInfo[h][hValue])
{
InHouse[playerid] = h;
PlayerInfo[playerid][pPhousekey] = HouseInfo[h][hID];
PlayerInfo[playerid][pRented] = -1;
HouseInfo[h][hOwned] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255);
GivePlayerCash(playerid,-HouseInfo[h][hValue]);
SetPlayerInterior(playerid,HouseInfo[h][hInterior]);
SetPlayerPos(playerid,HouseInfo[h][hExitx],HouseInfo[h][hExity],HouseInfo[h][hExitz]);
SetPlayerVirtualWorld(playerid,HouseInfo[h][hVirtual]);
GameTextForPlayer(playerid, "~w~Welcome Home~n~You can exit at any time by moving to this door and press enter", 5000, 3);
PlayerInfo[playerid][pInt] = HouseInfo[h][hInterior];
PlayerInfo[playerid][pLocal] = h;
SendClientMessage(playerid, COLOR_WHITE, "Congratulations, on your new Purchase !");
SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the new property help section !");
Update(playerid,pCashx);
Update(playerid,pPhousekeyx);
new str2[256];
format(str2,sizeof(str2),"UPDATE `houses` SET `Owned`='1',`Owner`='%s' WHERE `ID`='%d'",sendername,HouseInfo[h][hID]);
mysql_query(SQL,str2);
OnPropTextdrawUpdate(1,h);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: You don't have the cash for that.");
return 1;
}
}
}
}
return 1;
}SETRENT
CMD:setrent(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai.");
if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo[playerid][pPhousekey],playername[25],string[25],fee;
GetPlayerName(playerid, playername, sizeof(playername));
if (bouse != 999 && strcmp(GetName(playerid), HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
if(sscanf(params, "d",fee)) return SendClientMessage(playerid, COLOR_GREY, "Sintaxa: {FFFFFF}/setrent <Money>");
if(fee < 1 || fee > 5000) return SendClientMessage(playerid, COLOR_WHITE, "{FFF8C6}Minimum rent is $1, maximum rent is $5,000.");
HouseInfo[bouse][hRent] = fee;
new str2[64];
format(str2,64,"UPDATE `houses` SET `Rent`='%d' WHERE `ID`='%d'",fee,bouse);
mysql_query(SQL,str2);
format(string, sizeof(string), "House rent set to $%s.", FormatNumber(HouseInfo[bouse][hRent]));
SendClientMessage(playerid, COLOR_WHITE, string);
OnPropTextdrawUpdate(1,PlayerInfo[playerid][pPhousekey]);
return 1;
}
else return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Nu detii o casa.");
}
return 1;
} -
Imi merge comanda [/buyhouse] imi apare si in baza de date ca detin casa dar cand tastez una din comenzile astea [/setrent, /setrentable, /open, etc], imi zice ca nu detin o casa.
Folosesc gm-ul lui Edison. [Cel cu 200 RON]
-
-
Ma poate ajuta si pe mine cu conectarea bazei de date la un panel pe localhost ?
-
Descriere produs:Cumpar GameMode Rulled ( Stiu ca este pe internet dar eu nu il gasesc) (Cel cu sistemul de OX)
Cat sunt dispus să plătesc: 8 Euro
Alte detalii: Sunt dispus sa dau si contul meu de steam cu ETS2, Cs1.6, si inca 3 jocuri + 0,98 Euro pe cont. -
Descriere tutorial: Salut vreau sa creez si eu acest tutorial de reports si cheaters - https://www.youtube.com/watch?v=w3xgbChv_Cg - sa fac sa apara ca la ei acolo in dreapta REPORTS:0 / CHEATERS:0 Multumesc frumos de ajutor. P.S: Am gm-ul RulePlay.
-
@Uzzi25 Mie nu imi arata skin-ul ... Din ce cauza ?
-
Tot la fel imi arata ...
-
Problema intalnita (descriere):Cand pornesc gm-ul WeGGix imi aceasta eroare:
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da -
Acum 10 minute, Rookye a spus:
Multumesc mult !!!
-
Descriere produs:Cumpar GameMode Rulled ( Stiu ca este pe internet dar eu nu il gasesc)
Cat sunt dispus să plătesc: 5-7 Euro
Alte detalii: Sunt dispus sa dau si contul meu de steam cu ETS2, Cs1.6, si inca 3 jocuri + 0,98 Euro pe cont. -
As dori si eu gm-ul Rulled RPG.
Multumesc!
-
new BonusActiv = 0; Comanda activatebonus: CMD:activatebonus(playerid, params[]) //-> Cu aceasta comanda activezi bonus-ul [/bonus] { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first. ."); if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 4) { if(BonusActiv == 0) { BonusActiv = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai activat comanda /bonus!"); } else { BonusActiv = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai dezactivat comanda /bonus!"); } } else { SendClientMessage(playerid, COLOR_ERROR, AdminOnly); } } return 1; } Comanda bonus: CMD:bonus(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first. ."); if(IsPlayerConnected(playerid)) { if(BonusActiv > 0) { if(PlayerInfo[playerid][pLevel] <= 2) { GivePlayerCash(playerid, 69000000); // -> Cash $ PlayerInfo[playerid][pLevel] = 69; // -> Level-ul PlayerInfo[playerid][pExp] += 69; // -> RespectPoints Update(playerid, pLevelx); Update(playerid, pCashx); Update(playerid, pExp); SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit $69.000.000, 69 rp-uri si level 69 de bun venit!"); } else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !"); } } return 1; }new BonusActiv = 0; Comanda activatebonus: CMD:activatebonus(playerid, params[]) //-> Cu aceasta comanda activezi bonus-ul [/bonus] { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first. ."); if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 4) { if(BonusActiv == 0) { BonusActiv = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai activat comanda /bonus!"); } else { BonusActiv = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai dezactivat comanda /bonus!"); } } else { SendClientMessage(playerid, COLOR_ERROR, AdminOnly); } } return 1; }
Toxic-Game v1.0.2
in Gamemode-uri
Posted
Este non-mysql.