[POMOC] Par pitanja

Započeo 032.Marcus, Jul 08, 2011, 16:26:56 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Pozdrav svima,
Gagi_Corleone sa ovog foruma mi je pomogao oko sredjivanja tj. editovanja Ravensa, pa sam ga zamolio da mi naredi da u opstini ne bude onako sve razbacano nego da bude kao u jednom meniju, kada kuca igrac /opstina izadje mu opcija, promena imena, poslovi itd. On je to uradio, ali meni radi samo za promenu imena, izgleda da je negde pogresio, ali ne zelim vise da mu dosadjujem pa evo vas da pitam ovde da li neko zna gde je greska i da li moze da je ispravi...

3d text - nema problema, vidi se lepo

Create3DTextLabel("/opstina\nDa vidite pomoc u opstini", 0x00C2ECFF, 361.9362,173.4390,1008.3828, 40.0, 0);

/opstina - nema problema, pojavljuje se meni

if (strcmp(cmd, "/opstina", true) == 0) // By Gagi
{
if (IsPlayerInRangeOfPoint(playerid, 2.0,361.9362,173.4390,1008.3828))
{
ShowPlayerDialog(playerid, 103, DIALOG_STYLE_LIST, "Opstina", "Promena imena\nLegalni poslovi\nOfficertest\nOfficercourse\nTake Test","Ok","Cancel");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste u opstini!");
}
return 1;
}


Biranje - ovde ima problem, samo radi promena imena

  if(dialogid == 103)
{
      if(response)
{
if(listitem == 0)
    {
new tmp[128];
        if(CanChangeName[playerid] == 0) return SendClientMessage(playerid, COLOR_GREY, "* For security reasons, you need to authorize the name change first! (/account)");
if(PlayerInfo[playerid][pShiftName] == 0 && GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_GREY, "* You do not have enough money!");
if(ChangedName[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "* You have Changed Your name, Now Relog if you want to change it again");
if(!IsPlayerInRangeOfPoint(playerid, 3, 358.3578,167.7956,1008.3828) && PlayerInfo[playerid][pShiftName] == 0) return SendClientMessage(playerid, COLOR_GREY, "* You are not at the City Hall Desk, Nor you have a Free Changename!");
format(string, sizeof(string), "LARP/Users/%s.ini", tmp);
if(!dini_Exists(string))
{
    SetPlayerName(playerid, tmp);
format(string, sizeof(string),"** Your have successfuly changed your name to %s", tmp);
SendClientMessage(playerid, COLOR_SEA, string);
new housekey = PlayerInfo[playerid][pPhousekey];
new bizzkey = PlayerInfo[playerid][pPbiskey];
new carkey1 = PlayerInfo[playerid][pPcarkey];
new carkey2 = PlayerInfo[playerid][pPcarkey2];
if(PlayerInfo[playerid][pShiftName] == 0)
{
SafeGivePlayerMoney(playerid, -10000);
}
format(string, sizeof(string),"%s",tmp);
if(PlayerInfo[playerid][pPhousekey] != 9999)
{
    strmid(HouseInfo[housekey][hOwner],string,0,strlen(string),255);
    OnPropUpdate(1,housekey);
    OnPropTextdrawUpdate(1, housekey);
    SendClientMessage(playerid, TEAM_GROVE_COLOR,"* House ownership changed successfuly!");
}
if(PlayerInfo[playerid][pPbiskey] != 9999)
{
    strmid(BizzInfo[bizzkey][bOwner],string,0,strlen(string),255);
    OnPropUpdate(2,bizzkey);
    OnPropTextdrawUpdate(2, bizzkey);
    SendClientMessage(playerid, TEAM_GROVE_COLOR,"* Business ownership changed successfuly!");
}
if(PlayerInfo[playerid][pPcarkey] != 9999)
{
    strmid(CarInfo[carkey1][cOwner],string,0,strlen(string),255);
    OnPropUpdate(4,carkey1);
    SendClientMessage(playerid, TEAM_GROVE_COLOR,"* First Vehicle ownership changed successfuly!");
}
if(PlayerInfo[playerid][pPcarkey2] != 9999)
{
    strmid(CarInfo[carkey2][cOwner],string,0,strlen(string),255);
    OnPropUpdate(4,carkey2);
    OnPropTextdrawUpdate(1, housekey);
    SendClientMessage(playerid, TEAM_GROVE_COLOR,"* Second Vehicle ownership changed successfuly!");
}
format(string, sizeof(string), "LARP/Users/%s.ini", sendername);
fremove(string);
format(string, sizeof(string), "LARP/Users/%s.ini", tmp);
dini_Create(string);
OnPlayerUpdateEx(playerid);
ChangeNameTimer = SetTimerEx("ChangeYourName", 1500, true, "i", playerid);
ChangedName[playerid] = 1;
if(PlayerInfo[playerid][pShiftName] == 1) { PlayerInfo[playerid][pShiftName] = 0; SendClientMessage(playerid, COLOR_GREY, "* You used your Shiftname Rights!"); }
}
if(listitem == 1)
    {
                            ShowMenuForPlayer(LegalJobs, playerid);
                            }
if(listitem == 2)
    {
        if(OnOfficerTest[playerid] == 0)
                {
                    if(PlayerInfo[playerid][pCopLic] == 0)
                    {
                        if(PlayerInfo[playerid][pOfficerTime] == 0)
                        {
                            if(PlayerInfo[playerid][pCarLic] == 1 && PlayerInfo[playerid][pPassport] == 1)
                            {
                ClearChatbox(playerid, 10);
                TestStep[playerid] = 1;
    SendClientMessage(playerid, COLOR_YELLOW,"1 - What does 'Roleplay' Stands for?");
    ClearChatbox(playerid, 4);
    SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car");
    SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away.");
    SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must act like i was in real life.");
    SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone.");
    SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status.");
    OnOfficerTest[playerid] = 1;
    GameTextForPlayer(playerid, "~w~Type ~y~/canceltest ~w~if you wish to finish the test ~g~($5000 Fees)",10000,4);
}
}
}
}
}
if(listitem == 3)
    {
        if(PlayerInfo[playerid][pCopLic] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "You already have a cop license.");
                return 1;
            }
OfficerCourseStep[playerid] = 1;
            ClearChatbox(playerid, 10);
SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- City Hall Police Academy ---------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"Welcome to the Optional Officer Test Course, offered by the City Hall of Los Santos");
SendClientMessage(playerid, COLOR_WHITE,"Here, you will have a Course of not more than 15 Minutes to Learn how to be a Security Guard");
SendClientMessage(playerid, COLOR_WHITE,"You will be teach on how to arrest a suspect, What to do, What to not do, And what could happen...");
SendClientMessage(playerid, COLOR_WHITE,"Pay atention to the course carefully, You will be requiered to take a test later to get a Cop License");
SendClientMessage(playerid, COLOR_WHITE,"The Test will have Ten Questions, you will be requiered to Answer 9 Correct to Pass, else you'll fail");
ClearChatbox(playerid, 3);
SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
GameTextForPlayer(playerid, "~w~Type ~y~/cancelcourse ~w~when done to finish the course",10000,4);
}
if(listitem == 4)
    {
    if(OnPassportTest[playerid] == 0)
                {
                if(PlayerInfo[playerid][pPassport] == 0)
                    {
                    if(PlayerInfo[playerid][pPassportTime] == 0)
                        {
                ClearChatbox(playerid, 10);
                TestStep[playerid] = 1;
    SendClientMessage(playerid, COLOR_YELLOW,"1 - What does 'Roleplay' Stands for?");
    ClearChatbox(playerid, 4);
    SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car");
    SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away.");
    SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must act like i was in real life.");
    SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone.");
    SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status.");
    OnPassportTest[playerid] = 1;
    GameTextForPlayer(playerid, "~w~Type ~y~/canceltest ~w~if you wish to finish the test ~g~(No Fees)",10000,4);
}
else
{
    format(string, sizeof(string),"* You still have to wait %d minutes to re-do the test...",(PlayerInfo[playerid][pPassportTime] / 60))
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "* You have a passport already...");
return 1;
}
}
}
}
}
  return 1;



Da ne bih otvarao vise tema evo pitacu jos nesto ovde...


1. Kako da snimim klip u SAMPu, ali kao da sam u Spec, ne sa FRAPSOM, kao naprimer u CSu idem i gledam grad (pokusao sam da nadjem Tut nisam uspeo) [RESENO]
2. Isti problem kao za /opstina (samo sam ovo ja dodavao), pa ako neko moze da ispravi gresku
3. Ovo pitanje je vezano za MAPU, da li ima neko od vas napravljenu ogradu i kapiju (na otvaranje) za organizacije (LCN,Yamaguchi itd...) ili za pijacu
4. FS da kada kucam /jetpack ili neku drugu komandu dobijem jetpack, kucao sam u search jetpack i nesto na tu foru ali nisam uspeo da nadjem
if(dialogid == 2000)
{
if(response)
{
if(listitem == 0)
{
  format(string, sizeof(string), "%s je kupio Pivo!", sendername);
  SendClientMessage(playerid, COLOR_PURPLE, string);
  GivePlayerMoney(playerid,-5);
  SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
}

if(listitem == 1)
{
format(string, sizeof(string), "%s je kupio Coca Colu!", sendername);
SendClientMessage(playerid, COLOR_PURPLE, string);
GivePlayerMoney(playerid,-3);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
}

if(listitem == 2)
  {
  format(string, sizeof(string), "%s je kupio Hot Dog i pojeo ga!", sendername);
  SendClientMessage(playerid, COLOR_PURPLE, string);
  GivePlayerMoney(playerid,-4);
  SetPlayerHealth(playerid, 100);
    }

    if(listitem == 3)
    {
    format(string, sizeof(string), "%s je kupio Sladoled i pojeo ga!", sendername);
    SendClientMessage(playerid, COLOR_PURPLE, string);
    GivePlayerMoney(playerid,-2);
    SetPlayerHealth(playerid, 100);
    }
}
return 1;
    }




Izvinjavam se sto sam postavio vise pitanja, i pitanje za mapu, ali da ne bih otvarao vise tema i spamovao pitao sam ovde sto mi treba. Posto za 6 dana treba da zavrsim sredjivanje Servera...
Poslednja Izmena: Jul 09, 2011, 14:46:50 POSLE PODNE od 032.Marcus