Pretraga

Pritisnite Enter za pretragu ili Escape za zatvaranje

#InphiniteGamer

#InphiniteGamer

Rookie

Poslednja aktivnost

pre 14 godina

postova

7

Kreiranih tema

0

XP

150

Pridružio se

maj 2011

Trenutna aktivnost

Izgleda da #InphiniteGamer trenutno ne radi ništa

Odgovorio na May 19, 2011
[pomoc] oglas
GTA San Andreas Multiplayer / Pitanja & Pomoć


new Text:Oglas;
Oglas= TextDrawCreate( cordx, cordy, " " );
public OnPlayerConnect(playerid)
{
   TextDrawShowForPlayer(playerid,Oglas);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/oglas",cmdtext,true,6)== 0)
   {
   if(!strlen(cmdtext)) return  SendClientMessage(playerid,0x3AA3A,"UPOTREBA: /oglas [ Text oglasa ]");
   }

else
{
new name;
GetPlayerName(playerid,name,sizeof(name));
new oglas;
format(oglas,sizeof(oglas),"OGLAS : %s \n OD %s ",string,name);
TextDrawSetString(Oglas,oglas);
}

return 1;
}


Nisam testirao komandu kako radi .. editiraj to po svoj ukus kako zelis i dodaj broj jer neznam koj system ta skripta koristi .. ako trebas jos pomoci ili ima errore,ili treba ti dcmd/zcmd posalji slobodno  tu sam...
Odgovorio na May 18, 2011
[pomoc] Admin report
GTA San Andreas Multiplayer / Pitanja & Pomoć
if(strcmp(cmd, "/report", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /report ");
return 1;
}
                                     
format(string, sizeof(string), ": {%s} (%d)kaze: [ %s ]", sendername,playerid, (result));
                                          for( new j=0;j                                          {
                                            if(PlayerInfo == 1)
                                            {
SendGameMasterAdminMessage(COLOR_YELLOW,string);
                                              }
                                                else if(PlayerInfo[AdminOnDuty == 0) return SendClientMessage(j,COLOR_YELLOW,"Report : %s ");
                                          }

SendClientMessage(playerid, COLOR_GREEN, "Tvoja Report poruka je uspijesno poslana !");
SendClientMessage(playerid, COLOR_LIGHTRED, "__________________________________________________________________________");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Administratori/GameMasteri ce ti brzo odgovoriti.Molimo sacekaj.");
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s -> /report %s",d,m,y,h,mi,s,sendername, (result));
CommandLog(string);
ReportLog(string);
    }
    return 1;
}

Napomena : Editirao sam komandu direktno u post .. nisam je copy u pawno jer nekoristim GF .. ako imas neke errore posalji ih resicemo.
Odgovorio na May 18, 2011
[POMOC] Streamer
GTA San Andreas Multiplayer / Pitanja & Pomoć
Uzmi Double-O-Streamer ... tamo imas opcija kao distance itd ... 🙂 testovan je radi dobro
Odgovorio na May 17, 2011
[pomoc] kako koristite utf-8 kao default charset
GTA San Andreas Multiplayer / Pitanja & Pomoć
UTF 8 ti je standardni ASCII kod za dekodovanje karaktera ...  koristi ovo

http://forum.sa-mp.com/showthread.php?t=223944

to ti je UTF 8  CODER  i DECODER  .. tako mozes da prevedes skriptu u razlicite jezike 😄
Odgovorio na May 16, 2011
[POMOC] Chat
GTA San Andreas Multiplayer / Pitanja & Pomoć
Mislis  na lokalan chat ? To bi mogao uradit sa ProxDetectorom ili IfIsPlayerInRangeOfPoint..

Evo ti ProxDetector 

Prvo ga najavi gore iznad Main ..

forward ProxDetector(Float:radi,playerid,string[],col1,col2,col3,col4,col5);

public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
{
    if(IsPlayerConnected(playerid))
    {
        new Float:posx, Float:posy, Float:posz;
        new Float:oldposx, Float:oldposy, Float:oldposz;
        new Float:tempposx, Float:tempposy, Float:tempposz;
        GetPlayerPos(playerid, oldposx, oldposy, oldposz);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
            {
                GetPlayerPos(i, posx, posy, posz);
                tempposx = (oldposx -posx);
                tempposy = (oldposy -posy);
                tempposz = (oldposz -posz);
                if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
                {
                    SendClientMessage(i, col1, string);
                }
                else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
                {
                    SendClientMessage(i, col2, string);
                }
                else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
                {
                    SendClientMessage(i, col3, string);
                }
                else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
                {
                    SendClientMessage(i, col4, string);
                }
                else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
                {
                    SendClientMessage(i, col5, string);
                }
            }
            else
            {
                SendClientMessage(i, col1, string);
            }
        }
}
}



A ovo dodaj ispod  OnPlayerText(playerid,text[])

    new pname, str;
    GetPlayerName(playerid, pname, 24);
    format(str, sizeof(str), "%s zboruva: %s", pname, text);
    ProxDetector(10.0, playerid, str, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);

Odgovorio na May 16, 2011
[pomoc] Niza
GTA San Andreas Multiplayer / Pitanja & Pomoć
Kad si uzeo  Array od u ovaj slucaj spawn .... koristis od spawn[0..3] to su 4 broja 4 je van dometa .. u tom slucaju trebace ti array...
2

Novi Član

Nivo 2

Iskustvo 50 / 100 XP
Ukupno XP: 150 50 XP do sledećeg nivoa
3
Dostignuća
150
Ukupno XP
0
Trenutni Niz
0
Najduži Niz

Sva Dostignuća

3 / 20 otključano

Prikaži sve →
🎯
Početak
Početak
Napišite 10 postova na forumu
+25 XP
Aktivni Saradnik
Aktivni Saradnik
Napišite 50 postova na forumu
+50 XP
🏅
Klub Stotina
Klub Stotina
Napišite 100 postova na forumu
+100 XP
🏆
Legenda Foruma
Legenda Foruma
Napišite 500 postova na forumu
+250 XP
👥
Vođa Diskusija
Vođa Diskusija
Kreirajte 10 tema na forumu
+50 XP
🛡️
Uzoran Građanin
Uzoran Građanin
30 dana bez ikakvih upozorenja
+40 XP
🔰
Primerni Član
Primerni Član
90 dana bez ikakvih upozorenja
+100 XP
🚩
Čuvar Zajednice
Čuvar Zajednice
Pošaljite 5 korisnih prijava
+75 XP
📅
Nedeljni Ratnik
Nedeljni Ratnik
Prijavite se 7 dana zaredom
+35 XP
🔥
Posvećeni Fan
Posvećeni Fan
Prijavite se 30 dana zaredom
+150 XP
💬
Prvi Post
Prvi Post
Napišite svoj prvi post na forumu
+10 XP
📝
Pokretač Tema
Pokretač Tema
Kreirajte svoju prvu temu
+15 XP
❤️
Poštovalac
Poštovalac
Dajte svoj prvi lajk na post
+5 XP
👍
Prvo Priznanje
Prvo Priznanje
Primite svoj prvi lajk na post
+5 XP
👤
Identitet Otkriven
Identitet Otkriven
Popunite profil sa avatarom i biografijom
+20 XP

Nedavna XP Aktivnost

+100
Otključano: Primerni Član
pre 1 nedelju
Dostignuće
+40
Otključano: Uzoran Građanin
pre 1 nedelju
Dostignuće
+10
Otključano: Prvi Post
pre 1 nedelju
Dostignuće