"Trebam nešto" - tema

Započeo BloodMaster, Oktobar 02, 2011, 12:01:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

evo if(strcmp(cmd, "/ban", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        new playersip[64];
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /ban [ID Igraca/Deo Imena] [razlog]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
    if(IsPlayerConnected(giveplayerid))
    {
if(PlayerInfo[giveplayerid][pAdmin] >= 1338)
{
SendClientMessage(playerid, COLOR_WHITE, ""COL_RED"|CityBot|{FFFFFF} Pokusaj BANA Admina veceg levela nije uspelo!");
return 1;
}
        if(giveplayerid != INVALID_PLAYER_ID)
        {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerIp(giveplayerid,playersip,sizeof(playersip));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /ban [ID Igraca/Deo Imena] [razlog]");
return 1;
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
SendClientMessage(giveplayerid,COLOR_NICERED, "____________________________________________________________________________________");
SendClientMessage(giveplayerid,COLOR_LIGHTRED, "ISKLJUCENI STE SA SERVERA(Banani)!Pazljivo procitajte text!");
format(string,sizeof(string), "%s (ID: %d) je iskljucen (Banan) sa servera od %s",giveplayer, giveplayerid, sendername);
SendClientMessage(giveplayerid, COLOR_NICERED, string);
BanLog(string);
format(string,sizeof(string), "Razlog iskljucenja: %s ", (result));
SendClientMessage(giveplayerid, COLOR_NICERED, string);
BanLog(string);
format(string,sizeof(string), "Datum i vreme bana: Dana: %d/%d/%d, Sati: %d:%d:%d | Vasa IP Adresa je: %s ",d,m,y,h,mi,s, playersip);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
SendClientMessage(giveplayerid,COLOR_WHITE, "Sa ovim banom, vas korisnicki racun je suspendiran na neograniceno!");
SendClientMessage(giveplayerid,COLOR_ORANGE, "Ukoliko mislis da je doslo do greske slikaj ovo(f8) i zatrazi unban na forumu!");
SendClientMessage(giveplayerid,COLOR_NICERED, "____________________________________________________________________________________");
format(string, sizeof(string), "Ban | {FFFFFF}%s | Admin: %s | Razlog: "COL_RED"%s {FFFFFF}(Dana: %d/%d/%d | Sati: %d:%d:%d)", giveplayer, sendername, (result),d,m,y,h,mi,s);
ABroadCast(NICERED,string,1);
format(string, sizeof(string), "Ban | {FFFFFF}%s | {F81414}Admin: {FFFFFF}%s", giveplayer, sendername);
SendClientMessageToAll(NICERED, string);
PlayerInfo[giveplayerid][pLocked] = 1;
Ban(giveplayerid);
return 1;
}
}//not connected
}
else
{
format(string, sizeof(string), "   %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}

bana ip -.-.-.-.-.-.-

Citatif(strcmp(cmd, "/ban", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           new playersip[64];
          tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /ban [ID Igraca/Deo Imena] [razlog]");
            return 1;
         }
         giveplayerid = ReturnUser(tmp);
         if (PlayerInfo[playerid][pAdmin] >= 1)
         {
             if(IsPlayerConnected(giveplayerid))
             {
               if(PlayerInfo[giveplayerid][pAdmin] >= 1338)
               {
                  SendClientMessage(playerid, COLOR_WHITE, ""COL_RED"|CityBot|{FFFFFF} Pokusaj BANA Admina veceg levela nije uspelo!");
                  return 1;
               }
                 if(giveplayerid != INVALID_PLAYER_ID)
                 {
                   GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  GetPlayerIp(giveplayerid,playersip,sizeof(playersip));
                  new length = strlen(cmdtext);
                  while ((idx < length) && (cmdtext[idx] <= ' '))
                  {
                     idx++;
                  }
                  new offset = idx;
                  new result[128];
                  while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                  {
                     result[idx - offset] = cmdtext[idx];
                     idx++;
                  }
                  result[idx - offset] = EOS;
                  if(!strlen(result))
                  {
                     SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /ban [ID Igraca/Deo Imena] [razlog]");
                     return 1;
                  }
                  new y, m, d;
                  new h,mi,s;
                  getdate(y,m,d);
                  gettime(h,mi,s);
                  SendClientMessage(giveplayerid,COLOR_NICERED, "____________________________________________________________________________________");
                  SendClientMessage(giveplayerid,COLOR_LIGHTRED, "ISKLJUCENI STE SA SERVERA(Banani)!Pazljivo procitajte text!");
                  format(string,sizeof(string), "%s (ID: %d) je iskljucen (Banan) sa servera od %s",giveplayer, giveplayerid, sendername);
                  SendClientMessage(giveplayerid, COLOR_NICERED, string);
                  BanLog(string);
                  format(string,sizeof(string), "Razlog iskljucenja: %s ", (result));
                  SendClientMessage(giveplayerid, COLOR_NICERED, string);
                  BanLog(string);
                  format(string,sizeof(string), "Datum i vreme bana: Dana: %d/%d/%d, Sati: %d:%d:%d | Vasa IP Adresa je: %s ",d,m,y,h,mi,s, playersip);
                  SendClientMessage(giveplayerid, COLOR_WHITE, string);
                  SendClientMessage(giveplayerid,COLOR_WHITE, "Sa ovim banom, vas korisnicki racun je suspendiran na neograniceno!");
                  SendClientMessage(giveplayerid,COLOR_ORANGE, "Ukoliko mislis da je doslo do greske slikaj ovo(f8) i zatrazi unban na forumu!");
                  SendClientMessage(giveplayerid,COLOR_NICERED, "____________________________________________________________________________________");
                  format(string, sizeof(string), "Ban | {FFFFFF}%s | Admin: %s | Razlog: "COL_RED"%s {FFFFFF}(Dana: %d/%d/%d | Sati: %d:%d:%d)", giveplayer, sendername, (result),d,m,y,h,mi,s);
                  ABroadCast(NICERED,string,1);
                  format(string, sizeof(string), "Ban | {FFFFFF}%s | {F81414}Admin: {FFFFFF}%s", giveplayer, sendername);
                  SendClientMessageToAll(NICERED, string);
                  PlayerInfo[giveplayerid][pLocked] = 1;
                  Ban(giveplayerid);
                  return 1;
               }
            }//not connected
         }
         else
         {
            format(string, sizeof(string), "   %d nije aktivan igrac.", giveplayerid);
            SendClientMessage(playerid, COLOR_GRAD1, string);
         }
      }
      return 1;
   }


Village's Roleplay USKORO...

Village's Roleplay USKORO...


Citat: [RG]...Nikola... poslato Januar 29, 2012, 12:53:58 POSLE PODNE
ovo Ban(giveplayerid); makni
daj nemoj pricati gluposti ako to makne onda neka makne cijelu komadnu ..
ON : evo ti pogledaj : http://balkan-samp.com/forum/index.php?topic=30893.0

Potrebne su mi sledeće filescripte ako neko slučajno ima: War sistem,sistem vikendica,sistem hotela.

Hvala svima koji mogu da mi pomognu.

Trebam HouseCar system, ako moze neko da mi od GarHouse napravi skriptu sa samo HouseCar znaci da obrise ostale komande osim te ;)


Village's Roleplay USKORO...

Village's Roleplay USKORO...

Trebam skriptera koji zna radit.O nagradi cemo se dogovorit


Trebam hitno HouseCar(HC) i war system. Hvala


Village's Roleplay USKORO...

Village's Roleplay USKORO...

Evo ovako zelio bi' u reg/log system da napravim kada igraci pisu password da to ide pod cenzuru,koristim STRCMP i je li u njemu to ikako moze i kako da napravim?

HVALA




Balkan Ulice RPG opis servera: Click



-Tutorial za mijesanje ID-ova na vozilima: Click

To mozes samo ako koristis dialog-ove, (DIALOG_STYLE_PASSWORD,isto ko i input samo sto ovaj ima tockice umjesto slova, ko windows log on), ali nemozes cenzurirati rijeci ako imas komandu /login

Registrirajte se na Pecalicu! (Rewards1 & Prizerebel tip stranice samo sto je ova za Balkan!) Molim preko ovog linka :)

Speedo & Fuel by #marcus.

Što se tiče skriptanja mogu vam pomoći sa manjim problemima, za nešto veliko me ne ispitujte!

Citat: #marcus. poslato Januar 31, 2012, 18:56:40 POSLE PODNE
To mozes samo ako koristis dialog-ove, (DIALOG_STYLE_PASSWORD,isto ko i input samo sto ovaj ima tockice umjesto slova, ko windows log on), ali nemozes cenzurirati rijeci ako imas komandu /login

Hvala ti na pomoci sada cu pokusati uraditi i nije sa komandom /login,bit ce mi ovo od pomoci hvala jos jednom :D




Balkan Ulice RPG opis servera: Click



-Tutorial za mijesanje ID-ova na vozilima: Click

Moj edit Raven's-a,e ovako treba mi komanda da moze igrac igracu prodati kucu,pravio sam to sam ali uvijek ispadne nesto lose ili dodje igracu ponuda kojem nije namjerovano prodati kucu ili kada kupi dodju drugom kljucevi...Pa ako moze ikako ko pomoci. Evo tu cu staviti komandu da kada prodas kucu u vlasnistvo drzave sa /sellhouse,mozda vam pomogne

}

if(strcmp(cmd, "/sellhouse", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, playername, sizeof(playername));
if(PlayerInfo[playerid][pPhousekey] == 999)
{
SendClientMessage(playerid, COLOR_WHITE, "Nemate kucu.");
return 1;
}
if(PlayerInfo[playerid][pMarried] > 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "** Vi ste vjencani,ne mozete prodati kucu !");
        return 1;
    }
if(PlayerInfo[playerid][pPhousekey] != 999 && 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;

strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
//ConsumingMoney[playerid] = 1;
SafeGivePlayerMoney(playerid,HouseInfo[house][hValue]);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Cestitamo~n~ Prodali ste kucu za ~n~~g~$%d", HouseInfo[house][hValue]);
GameTextForPlayer(playerid, string, 10000, 3);
PlayerInfo[playerid][pPhousekey] = 999;
if(PlayerInfo[playerid][pLocal] == house)
{
SafeSetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SafeSetPlayerPos(playerid,HouseInfo[house][hEntrancex],HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
}
OnPropUpdate(1);
OnPropTextdrawUpdate(1, house);
OnHousePickupUpdate(house);
OnPlayerUpdateEx(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Nemate vasu vlastitu kucu.");
}
}
return 1;


Hvala vam na pomoci




Balkan Ulice RPG opis servera: Click



-Tutorial za mijesanje ID-ova na vozilima: Click

Trebao bih ZCMD komandu za gamemode od 0 da se mozhe dati admin i da pise igracu da je dobio admina, da pise svim adminima da je neki administrator dao admin lvl tom i tom igracu i da pise svima igracima na serveru da je taj i taj igrac dobio admina, hvala lijepa !
Mike Marquez | House of Rave is Trippy Place ! |

Trebam da mi neko sredi OnPlayerSpawn dio, kada god mi lik umre mene spawna tamo gdje sam zadnji put bio ima sve ono u skripti da spawna u bolnici ali nece nez sto uradio ne uradio tut(ravens),da vazda spawna u bolnici kad umre sem jail :D to mi je vec sredjeno hvala unaprijed
Poslednja Izmena: Februar 01, 2012, 13:00:21 POSLE PODNE od â–ºWoozieâ—„