Pretraga

Pritisnite Enter za pretragu ili Escape za zatvaranje

Zaključano

[pomoc] Ne vidi se IC Chat

Započeo goxyru
pre 11 godina
319
pregleda
11
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
goxyru
Hustler
pre 11 godina
Skripta koju koristim:moja od 0
Detaljan opis problema:kada ja pisem vidim sta napisem u ic chatu ali ne vidi niko vise to, a kad neki drugi igrac to pise ja vidim ali njemu ne izadje u chatu da je ista napisao..gledao sam slicne probleme na forumima, ubacim u skriptu to sto su oni rekli da radi.Problem je i dalje tu i jos sam primetio  sto cete videti iz skripte da tamo pise %s kaze: %s ali ja kad koristim chat iako ja vidim meni pise samo  Ime_prezime:text nema onog kaze...
Dio skripte:
public OnPlayerText(playerid, text[])
{
new string;
format(string, sizeof(string), "%s kaze: %s", GetName(playerid), text);
ProxDetector(playerid, 20.0, string, -1, -1, -1, -1, -1);
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Rudimental
OG Legend
pre 11 godina
Probaj ovako

public OnPlayerText(playerid, text[])
{
new string;
format(string, sizeof(string), "%s kaze: %s", GetName(playerid), text);
ProxDetector(20.0, playerid, string, -1, -1, -1, -1, -1);
return 1;
}


Stock za ProxDetector

stock 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)))
{
if (!BigEar)
{
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);
}
}
}
}
return 1;
}
goxyru
Hustler
pre 11 godina
http://imgur.com/aBDEuRu
isto kao sto je i bilo, opet nema ono "kaze"
mario_cacic
Shot Caller
pre 11 godina
Evo stavi vako
new realchat = 1;

if (realchat)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
strreplace(sendername, '_', ' ');
format(string, sizeof(string), "{FFFFFF}[%d] {008CFF}%s {FFFFFF}kaze: {FFFFFF}%s", playerid,sendername, text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 0;
}
Djordjevic97
Wheel Man
pre 11 godina
Dodaj ovo u redove gde su ti ostali New
new	obicancet = 1;


a ovo dodaj u OnPlayerText
if(obicancet)
{
new tekst1 = strlen(text),string;
                new BELA2 = {FFFFFF}; / Definise boju
for(new i = 0; i format(string, sizeof(string), ""BELA2"%s kaze: %s", GetName(playerid), text); // Ispisuje poruku na cetu
SetPlayerChatBubble(playerid, text, 0xFF0000, 100.0, 10000); // Ispisuje poruku igracu iznad glave
ProxDetector(20.0, playerid, string,BELA2,BELA2,BELA2,BELA2,BELA2);
return 0;
}
mario_cacic
Shot Caller
pre 11 godina
Poslo sam mu vec 😄
goxyru
Hustler
pre 11 godina
ne vredi... ni tako nece... sve dodam kao sto ste rekli i uvek kad dodjem in game i probam ic chat pise samo belim slovima ime:text a promenio sam boju chata... ne znam majke mi do cega je da mi ne fali neki include koji je vezan mozda za to ili ne znam..
evo koje samo imam

#include
#include
#include
#include
#include
#include
Rudimental
OG Legend
pre 11 godina
Kazi mi jel koristis mozda neku FS gde ima nesto vezano za ovaj public pa se nesto pomesa mozda ?
goxyru
Hustler
pre 11 godina
house sistem
Gagi's House System by: Mr.Gagi(Gagi_Corleone)
Rudimental
OG Legend
pre 11 godina
Pa jel u toj FS nesto pod publicom OnPlayerText ?
goxyru
Hustler
pre 11 godina
da ima nesto slicno kao sto su ovi momci to pisali ... to sam uklonio i snimi sve ok  radi ic sad hvala sto si se toga setio 🙂 samo jos da sad sve radi ok sa house sistemom 🙂 mada mislim da ce raditi 🙂
moze LOCK

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava