[Pomoc] Kucni dijalog

Započeo |TED| Boca SRB, Novembar 30, 2013, 01:55:40 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GTARP
Detaljan opis problema:E ovako da li bi neko mogao da mi pomogne kako da napravim dijalog kuce znaci primer sad /kucadijalog i sad kad to kucam da mi izadje Prodaj igracu i Prodaj drzavi ako bi  kliknuo na igraca da mi izadje prozorcic i da trazi koji je ID igraca i Cena,a kad bih kliknuo na drzavu da od prodaje dobije 50% ili ako je lakse iz sve komande da se napravi u zcmd hvala svima koji pomognu
Dio skripte:COMMAND:sellhouse(playerid, params[])
{
    if(IsPlayerConnected(playerid))
{
    new string[128];
GetPlayerName(playerid, playername, sizeof(playername));
if(PlayerInfo[playerid][pPhousekey] == 255)
{
SendClientMessage(playerid, COLOR_WHITE, "Nemate kucu da bi ste je prodali.");
return 1;
}
if(PlayerInfo[playerid][pMarried] > 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "Ozenjeni/Udati ste,ne mozete da prodate kucu");
        return 1;
    }
if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
new house = PlayerInfo[playerid][pPhousekey];
HouseInfo[house][hHel] = 0;
HouseInfo[house][hArm] = 0;
HouseInfo[house][hHealthx] = 0;
HouseInfo[house][hHealthy] = 0;
HouseInfo[house][hHealthz] = 0;
HouseInfo[house][hArmourx] = 0;
HouseInfo[house][hArmoury] = 0;
HouseInfo[house][hArmourz] = 0;
HouseInfo[house][hLock] = 1;
HouseInfo[house][hOwned] = 0;
HouseInfo[house][hVec] = 418;
HouseInfo[house][hVcol1] = -1;
HouseInfo[house][hVcol2] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(HouseInfo[house][hOwner], "Drzava", 0, strlen("Drzava"), 255);
BFAC_GivePlayerMoney(playerid,HouseInfo[house][hValue]);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Cestitamo vam~n~ Prodali ste vasu kucu za ~n~~b~$%d", HouseInfo[house][hValue]);
GameTextForPlayer(playerid, string, 10000, 3);
PlayerInfo[playerid][pPhousekey] = 255;
if(PlayerInfo[playerid][pLocal] == house)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
OnPropTextdrawUpdate();
OnHousePickupUpdate(house);
OnHouseMapUpdate(house);
OnPropUpdate();
SavePlayerAccount(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Nemate kucu.");
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Novembar 30, 2013, 15:45:15 POSLE PODNE od [BS] Boca A.k.A Bocilinjo


Nadjes neki House sistem,promenis varijable od kuce,i to je to..
Skriptam za pare