"Trebam nešto" - tema

Započeo vlado_plavsic, Avgust 16, 2012, 20:15:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 6 gostiju pregledaju ovu temu.

najnoviji sscanf plugin i include
Pravim RP,DM,TDM,STUNT, Freeroam modove od 0 za pare, nacini placanja : Paypal ili banka

CMD:changename(playerid,params[])
{
new string[128],ime[32],igrac;
if(sscanf(params, "us[32]", igrac,ime)) return SendClientMessage(playerid, -1, "/changename [ID igraca/Deo imena] [Novo ime]");
SetPlayerName(igrac, ime);
    return 1;
}

Citat: David (Sabljak) poslato Decembar 14, 2012, 16:44:15 POSLE PODNE
Trebam neki dobar /changenick, za yini :)
Evo vidi u ovoj temi http://balkan-samp.com/forum/index.php?topic=59779.msg430763#msg430763 i ja koristim yini pa sam imao ovaj problem i vegas je dao rijesenje.

Treba mi komanda /rever ko na yub ali slicno znaci da se moze spremit gun komanda /zapreka i /radar i da radar i zapreku moze postavit samo rank 3+ i jos mi treba komanda /offban
Hvala!
Poslednja Izmena: Decembar 14, 2012, 18:37:15 POSLE PODNE od mistic144
Trazimo Mapera Koji zna sto radi,koji je ozbiljan i da mi posalje neke radove na pm i koliko je spreman vremena dnevno odvojiti na mapanje.||Nagrada 1337 Admin||

Citat: David (Sabljak) poslato Decembar 14, 2012, 19:09:14 POSLE PODNE
Gle stari

Mozak upotrebi

Samo stavi da na komandu /zapreka da se CreateObject i stavi da =< Rank lol... jednostavno

Offban eto ti

CMD:offban(playerid, params[])
{
new igr[24],rzl[40],banfile[64];
new string[128];
new name1[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pAdmin] < 1337) return SCM(playerid,COLOR_RED,"{B3B3B3}[{FF0000}Greska!{B3B3B3}] Niste Admin!");
if(sscanf(params,"s[24]s[40]", igr, rzl)) return SendClientMessage(playerid,COLOR_RED,"Koristi: {FFFFFF}/offban [Ime_Prezime] [razlog]");
format(banfile,64,"Banovi/%s.ini",igr); // isto kao iza ban moras si definat put
new File:ban = fopen(banfile, io_write);
fwrite(ban, " OFFBAN \n");
new var[128]; format(var,64,"Admin = %s \n", GetName(playerid));
fwrite(ban,var);
format(var,128," Razlog = %s \n", rzl);
fwrite(ban,var);
fclose(ban);
GetPlayerName(playerid, name1, sizeof(name1));
format(string, sizeof(string),"|A|OffBan| {FFFFFF}Igrac %s {FF0000}|Admin| %s", igr,name1);
  PorukaAdminima(COLOR_RED,string,1); // salje poruku adminima online
return 1;
}


Original kod je od Docka!....  ja sam preradio malo...

Hvala ti jos mi treba samo za /radar i /rever
Trazimo Mapera Koji zna sto radi,koji je ozbiljan i da mi posalje neke radove na pm i koliko je spreman vremena dnevno odvojiti na mapanje.||Nagrada 1337 Admin||

sabljak , 3 posta zaredom su tvoja, smanji malo

Nenotu HAHHAAHHA valjda Nenadu xD bez uvrede :P

ON: Treba mi ingame map editor naci u funkciji EditObjecta da mogu stvarat i editat objekte, hvala

Join us today! 176.57.128.4:7793

Moji radovi:
[MAP] Burg - http://balkan-samp.com/forum/index.php?topic=28297
[MAP] Salon Brodova i Dock: http://balkan-samp.com/forum/index.php?topic=28260.0

Citat: kristijan250 poslato Decembar 17, 2012, 21:47:10 POSLE PODNE
Trebam rankup za org
CMD:giverank(playerid, params[])
{
new ID,level,string[120];
if(sscanf(params, "ud", ID,level)) return SendClientMessage(playerid, CRVENA, "Koristi: /giverank (ID/Ime) (rank)");
if(level > 6 || level < 0) return SendClientMessage(playerid, SIVA, "Rankovi su izmedu 1 i 6!");
if(PlayerInfo[playerid][Lider] < 1) return SendClientMessage(playerid, COLOR_GRAD1, "Samo Lideri mogu ovo koristiti!");
if(ID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GRAD1, "Pogresan ID!");
if(PlayerInfo[playerid][Lider] != PlayerInfo[ID][Clan]) return SendClientMessage(playerid, COLOR_GRAD1, "Igrac nije clan vase Org/Mafije/Bande!");
PlayerInfo[ID][pRank] = level;
format(string, sizeof(string), "Dobio si veci rank od Lidera:[%s],rank:[%s]", ImeIgraca(playerid),level);
SendClientMessage(ID, SVETLOPLAVA, string);
format(string, sizeof(string), "Dao si [%s],Rank:[%d].", ImeIgraca(ID),level);
SendClientMessage(playerid, SVETLOPLAVA, string);
return true;
}


Citat: [RW]RiLl poslato Decembar 17, 2012, 21:56:04 POSLE PODNE
Treba mi komanda za admine "GiveGun"
CMD:givegun(playerid, params[])
   {
     
      new idx;
       
       if(IsPlayerConnected(playerid))
       {
         temp = strtok(params, idx);
         if(!strlen(temp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /givegun{838361} [weaponid(eg. 46 = Parachute)] [municija]");
            return 1;
         }
         new gun;
         new ammo;
         gun = strval(temp);
         if(!strlen(temp))
         {
            SendClientMessage(playerid, COLOR_GRAD1, "{168BFF}INFO: {959561} /givegun {838361} [weaponid] [municija]");
            SendClientMessage(playerid, COLOR_GRAD4, "3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 10-13(Dildo) 14(Flowers) 16(Grenades) 18(Molotovs) 22(Pistol) 23(SPistol)");
            SendClientMessage(playerid, COLOR_GRAD3, "24(Eagle) 25(shotgun) 29(MP5) 30(AK47) 31(M4) 33(Rifle) 34(Sniper) 37(Flamethrower) 41(spray) 42(exting) 43(Camera) 46(Parachute)");
            return 1;
         }
         if(gun < 1||gun > 46||gun==27||gun==1||gun==2||gun==9||gun==17||gun==19||gun==20||gun==21||gun==39||gun==40||gun==44||gun==45)
         { SendClientMessage(playerid, COLOR_GRAD1, "   Pogresan ID oruzja!"); return 1; }
         temp = strtok(params, idx);
         ammo = strval(temp);
          foreach(Player, playa)
         {
                  GivePlayerWeapon(playa, gun, ammo);
         }
      }
      return 1;
   }

Citat: Blaeks poslato Decembar 17, 2012, 23:21:37 POSLE PODNE
Citat: [RW]RiLl poslato Decembar 17, 2012, 21:56:04 POSLE PODNE
Treba mi komanda za admine "GiveGun"
CMD:givegun(playerid, params[])
   {
     
      new idx;
       
       if(IsPlayerConnected(playerid))
       {
         temp = strtok(params, idx);
         if(!strlen(temp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /givegun{838361} [weaponid(eg. 46 = Parachute)] [municija]");
            return 1;
         }
         new gun;
         new ammo;
         gun = strval(temp);
         if(!strlen(temp))
         {
            SendClientMessage(playerid, COLOR_GRAD1, "{168BFF}INFO: {959561} /givegun {838361} [weaponid] [municija]");
            SendClientMessage(playerid, COLOR_GRAD4, "3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 10-13(Dildo) 14(Flowers) 16(Grenades) 18(Molotovs) 22(Pistol) 23(SPistol)");
            SendClientMessage(playerid, COLOR_GRAD3, "24(Eagle) 25(shotgun) 29(MP5) 30(AK47) 31(M4) 33(Rifle) 34(Sniper) 37(Flamethrower) 41(spray) 42(exting) 43(Camera) 46(Parachute)");
            return 1;
         }
         if(gun < 1||gun > 46||gun==27||gun==1||gun==2||gun==9||gun==17||gun==19||gun==20||gun==21||gun==39||gun==40||gun==44||gun==45)
         { SendClientMessage(playerid, COLOR_GRAD1, "   Pogresan ID oruzja!"); return 1; }
         temp = strtok(params, idx);
         ammo = strval(temp);
          foreach(Player, playa)
         {
                  GivePlayerWeapon(playa, gun, ammo);
         }
      }
      return 1;
   }

Sve super samo mi baci ove errore : C:\Users\GrGa\Desktop\RW.pwn(82952) : error 017: undefined symbol "temp"
C:\Users\GrGa\Desktop\RW.pwn(82952) : error 017: undefined symbol "strtok"
C:\Users\GrGa\Desktop\RW.pwn(82953) : error 017: undefined symbol "temp"
C:\Users\GrGa\Desktop\RW.pwn(82960) : error 017: undefined symbol "temp"
C:\Users\GrGa\Desktop\RW.pwn(82961) : error 017: undefined symbol "temp"
C:\Users\GrGa\Desktop\RW.pwn(82970) : error 017: undefined symbol "temp"
C:\Users\GrGa\Desktop\RW.pwn(82970) : error 017: undefined symbol "strtok"
C:\Users\GrGa\Desktop\RW.pwn(82971) : error 017: undefined symbol "temp"
C:\Users\GrGa\Desktop\RW.pwn(82948) : warning 203: symbol is never used: "idx"


evo skripta ;) : CMD:givegun(playerid, params[])
   {

      new idx;

       if(IsPlayerConnected(playerid))
       {
         temp = strtok(params, idx);
         if(!strlen(temp))
         {
            SendClientMessage(playerid, PLAVA, "{168BFF}INFO: {959561} /givegun{838361} [weaponid(eg. 46 = Parachute)] [municija]");
            return 1;
         }
         new gun;
         new ammo;
         gun = strval(temp);
         if(!strlen(temp))
         {
            SendClientMessage(playerid, PLAVA, "{168BFF}INFO: {959561} /givegun {838361} [weaponid] [municija]");
            SendClientMessage(playerid, PLAVA, "3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 10-13(Dildo) 14(Flowers) 16(Grenades) 18(Molotovs) 22(Pistol) 23(SPistol)");
            SendClientMessage(playerid, PLAVA, "24(Eagle) 25(shotgun) 29(MP5) 30(AK47) 31(M4) 33(Rifle) 34(Sniper) 37(Flamethrower) 41(spray) 42(exting) 43(Camera) 46(Parachute)");
            return 1;
         }
         if(gun < 1||gun > 46||gun==27||gun==1||gun==2||gun==9||gun==17||gun==19||gun==20||gun==21||gun==39||gun==40||gun==44||gun==45)
         { SendClientMessage(playerid, PLAVA, "   Pogresan ID oruzja!"); return 1; }
         temp = strtok(params, idx);
         ammo = strval(temp);
          foreach(Player, playa)
         {
                  GivePlayerWeapon(playa, gun, ammo);
         }
      }
      return 1;
   }

Citat: David (Sabljak) poslato Decembar 18, 2012, 13:20:42 POSLE PODNE
CMD:givegun(playerid, params[])
{
new id, oruzje, municija;
if(!(PlayerInfo[playerid][pAdmin] >= 4)) return SCM(playerid,COLOR_RED,"{B3B3B3}[{FF0000}Greska!{B3B3B3}] Niste Admin!");
else if(sscanf(params,"uii", id, oruzje, municija)) return SCM(playerid, COLOR_ORANGE,"Koristi:{FFFFFF} /givegun [Ime_Prezime/ID] [ID Oruzja] [Municija]");
else if(oruzje> 47 || oruzje< 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}>> [GRESKA] {FFFFFF}Krivi ID(1-47)!");
else if(municija> 999 || municija< 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}>> [GRESKA] {FFFFFF}Kriva municija(1-999)!");
else
{
    GivePlayerWeapon(id, oruzje, municija);
    SendClientMessage(playerid, COLOR_GREY, "Postavljeno!");
}
return 1;
}


Jednostavnije
Errori C:\Users\GrGa\Desktop\RW.pwn(82948) : error 017: undefined symbol "PlayerInfo"
C:\Users\GrGa\Desktop\RW.pwn(82948) : error 029: invalid expression, assumed zero
C:\Users\GrGa\Desktop\RW.pwn(82948) : error 029: invalid expression, assumed zero
C:\Users\GrGa\Desktop\RW.pwn(82948) : fatal error 107: too many error messages on one line


skripta : if(!(PlayerInfo[playerid][pAdmin] >= 4)) return SCM(playerid,COLOR_RED,"{B3B3B3}[{FF0000}Greska!{B3B3B3}] Niste Admin!");
Poslednja Izmena: Decembar 18, 2012, 13:38:16 POSLE PODNE od [RW]RiLl


jos jedan error : C:\Users\GrGa\Desktop\RW.pwn(82948) : error 017: undefined symbol "pAdmin"
Skripta :    if(!(PI[playerid][pAdmin] >= 4)) return SCM(playerid,COLOR_RED,"{B3B3B3}[{FF0000}Greska!{B3B3B3}] Niste Admin!");

if(!(PI[playerid][Admin] >= 4)) return SCM(playerid,COLOR_RED,"{B3B3B3}[{FF0000}Greska!{B3B3B3}] Niste Admin!");