Započeo [IF] mariomako
•9. Maj 2011.[pomoc] Zasto ne ispisuje poruke nego odma kicka
2,825
pregleda
13
postova
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
618
Postovi:
155
Teme:
Pridružio se:Apr. 2010
9. Maj 2011.
Skriptu koju koristim: moji gamemode od 0
Detaljan opis problema: Napravio sam moji public i postavio timer, ali u publicu ne ispisuje poruke posle odredeno vreme nego samo kicka
Dio skripte:
Slike: /
Detaljan opis problema: Napravio sam moji public i postavio timer, ali u publicu ne ispisuje poruke posle odredeno vreme nego samo kicka
Dio skripte:
public nologinkick(playerid)
{
if(GetPVarInt(playerid, "Logged") == 0)
{
if(GetPVarInt(playerid,"language")==1)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] Not logged in within 60 seconds because you are kicked from the server.");
}
else if(GetPVarInt(playerid,"language")==2)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] ÃÃ¥ ñå Ãà ¼à âèâòå âî ðîê îä 60 ñåêóÃäè, çà òîà ñòå èçáà öåÃè îä ñåðâåðîâ.");
}
Kick(playerid);
}
return 1;
}Slike: /
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
189
Postovi:
33
Teme:
Pridružio se:Mar. 2011
9. Maj 2011.
Mario Velickovski wrote on May 9, 2011, 8:50 am:
Skriptu koju koristim: moji gamemode od 0
Detaljan opis problema: Napravio sam moji public i postavio timer, ali u publicu ne ispisuje poruke posle odredeno vreme nego samo kicka
Dio skripte:
Slike: /
Detaljan opis problema: Napravio sam moji public i postavio timer, ali u publicu ne ispisuje poruke posle odredeno vreme nego samo kicka
Dio skripte:
public nologinkick(playerid)
{
if(GetPVarInt(playerid, "Logged") == 0)
{
if(GetPVarInt(playerid,"language")==1)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] Not logged in within 60 seconds because you are kicked from the server.");
}
else if(GetPVarInt(playerid,"language")==2)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] ÃÃ¥ ñå Ãà ¼à âèâòå âî ðîê îä 60 ñåêóÃäè, çà òîà ñòå èçáà öåÃè îä ñåðâåðîâ.");
}
Kick(playerid);
}
return 1;
}Slike: /
Probaj to .... neznam oce li radit ... gore u citatu sam ti komandu napravio valjda
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
618
Postovi:
155
Teme:
Pridružio se:Apr. 2010
9. Maj 2011.
Stjepan_Fox wrote on May 9, 2011, 12:56 pm:
zaljepi ovdje onaj dio kad igrac odabere koji jezik koristi..nezz jel ti to na registraciji ili gdje vec
to je sve lepo izabrao igrac, ako nije izabrao nema da stigne do ovaj korak 😄
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
634
Postovi:
82
Teme:
Pridružio se:Jul 2010
9. Maj 2011.
Mario Velickovski wrote on May 9, 2011, 12:56 pm:
zaljepi ovdje onaj dio kad igrac odabere koji jezik koristi..nezz jel ti to na registraciji ili gdje vec
to je sve lepo izabrao igrac, ako nije izabrao nema da stigne do ovaj korak 😄
pa iz pawna zaljepi ovdje taj dio gdje je izabrao jezik
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
618
Postovi:
155
Teme:
Pridružio se:Apr. 2010
10. Maj 2011.
Stjepan_Fox wrote on May 9, 2011, 12:56 pm:
zaljepi ovdje onaj dio kad igrac odabere koji jezik koristi..nezz jel ti to na registraciji ili gdje vec
to je sve lepo izabrao igrac, ako nije izabrao nema da stigne do ovaj korak 😄
pa iz pawna zaljepi ovdje taj dio gdje je izabrao jezik
nije do to 100%, jel kad izabare jezik ispise poruku, na igraca, kod mene ispise i za druge komande radi jezik ali na ovo neradi ☹️
inace evo ti dio:
if(dialogid==DIALOG_LANG)
{
switch(listitem)
{
case 0:
{
SetPVarInt(playerid,"language",1);
SendClientMessage(playerid, COLOR_LIMEGREEN, "[*] Ok, your language is English!");
SendClientMessage(playerid, COLOR_ORANGE, "[*] Welcome to ..:: Infinity DM/Stunt ::..");
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
SetupPlayerForRegisterLogin(playerid);
}
case 1:
{
SetPVarInt(playerid,"language",2);
SendClientMessage(playerid, COLOR_LIMEGREEN, "[*] Âî ðåä, âà øèîò ¼à çèê Ã¥ Ìà êåäîÃñêè!");
SendClientMessage(playerid, COLOR_ORANGE, "[*] Äîáðîäî¼äîâòå Ãà ..:: Infinity DM/Stunt ::..");
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
SetupPlayerForRegisterLogin(playerid);
}
}
}Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
466
Postovi:
17
Teme:
Pridružio se:Jan. 2011
10. Maj 2011.
O cemu se ovde radi, objasni malo, da bih mogao da znam o cemu se radi, znam sigurno da ti pomognem jer i ja upravo prevodim server
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
934
Postovi:
102
Teme:
Pridružio se:Jul 2010
10. Maj 2011.
public nologinkick(playerid)
{
if(GetPVarInt(playerid, "Logged") != 0) return Kick(playerid);
if(GetPVarInt(playerid,"language")==1)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] Not logged in within 60 seconds because you are kicked from the server.");
}
else if(GetPVarInt(playerid,"language")==2)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] ÃÃ¥ ñå Ãà ¼à âèâòå âî ðîê îä 60 ñåêóÃäè, çà òîà ñòå èçáà öåÃè îä ñåðâåðîâ.");
}
}
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
618
Postovi:
155
Teme:
Pridružio se:Apr. 2010
10. Maj 2011.
eXtreme wrote on May 10, 2011, 10:06 am:
public nologinkick(playerid)
{
if(GetPVarInt(playerid, "Logged") != 0) return Kick(playerid);
if(GetPVarInt(playerid,"language")==1)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] Not logged in within 60 seconds because you are kicked from the server.");
}
else if(GetPVarInt(playerid,"language")==2)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] ÃÃ¥ ñå Ãà ¼à âèâòå âî ðîê îä 60 ñåêóÃäè, çà òîà ñòå èçáà öåÃè îä ñåðâåðîâ.");
}
}
hvala a ovo mi treba za jednu drugu komandu, kako napraviti posle return da ima { } blok za vise naredbe i uslova 😄
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
934
Postovi:
102
Teme:
Pridružio se:Jul 2010
10. Maj 2011.
Mozes i ovako
public nologinkick(playerid)
{
if(GetPVarInt(playerid, "Logged") == 0)
{
if(GetPVarInt(playerid,"language")==1)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] Not logged in within 60 seconds because you are kicked from the server.");
}
else if(GetPVarInt(playerid,"language")==2)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] ÃÃ¥ ñå Ãà ¼à âèâòå âî ðîê îä 60 ñåêóÃäè, çà òîà ñòå èçáà öåÃè îä ñåðâåðîâ.");
}
}
return Kick(playerid);
}
public nologinkick(playerid)
{
if(GetPVarInt(playerid, "Logged") == 0)
{
if(GetPVarInt(playerid,"language")==1)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] Not logged in within 60 seconds because you are kicked from the server.");
}
else if(GetPVarInt(playerid,"language")==2)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] ÃÃ¥ ñå Ãà ¼à âèâòå âî ðîê îä 60 ñåêóÃäè, çà òîà ñòå èçáà öåÃè îä ñåðâåðîâ.");
}
}
return Kick(playerid);
}
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
618
Postovi:
155
Teme:
Pridružio se:Apr. 2010
11. Maj 2011.
a jel ovo:
radice isto ko ovo:
CMD:register(playerid, params[])
{
if(GetPVarInt(playerid, "Logged"))
{
if(GetPVarInt(playerid,"language")==1)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] You're already logged in!");
}
else if(GetPVarInt(playerid,"language")==2)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] Âèå ñòå Ãà ¼à âåÃè.");
}
}
else
{
if(isnull(params))
{
if(GetPVarInt(playerid,"language")==1)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] Usage: /register ");
}
else if(GetPVarInt(playerid,"language")==2)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] Óïîòðåáà : /register [ëîçèÃêà ]");
}
}
else
{
new Query, pName;
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
mysql_real_escape_string(pName, pName);
format(Query, sizeof Query, "SELECT * FROM `accounts` WHERE `Name` = '%s' LIMIT 1", pName);
mysql_query(Query);
mysql_store_result();
if(mysql_num_rows())
{
if(GetPVarInt(playerid,"language")==1)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] An account already exists under that name! Use \"/login\" to log in.");
mysql_free_result();
}
else if(GetPVarInt(playerid,"language")==2)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] Âà øà òà êîðèñÃè÷êà ñìåòêà ïîñòîè, êîðèñòèòå \"/login\" çà äà ñå Ãà ¼à âèòå.");
mysql_free_result();
}
return 1;
}
mysql_free_result();
WP_Hash(Query, 129, params);
new IP;
GetPlayerIp(playerid, IP, 16);
format(Query, sizeof Query, "INSERT INTO `accounts` (Name, Password, IP, Admin, Money, Score, Kills, Deaths) VALUES ('%s', '%s', '%s', %i, %i, %i, %i, %i)",
pName,
Query,
IP,
GetPVarInt(playerid, "Admin"),
GetPlayerMoney(playerid),
GetPlayerScore(playerid),
GetPVarInt(playerid, "Kills"),
GetPVarInt(playerid, "Deaths"));
mysql_query(Query);
SetPVarInt(playerid, "Logged", 1);
if(GetPVarInt(playerid,"language")==1)
{
SendClientMessage(playerid, COLOR_LIMEGREEN, "[*] Succesfully registered and automatically logged in!");
}
else if(GetPVarInt(playerid,"language")==2)
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] ÓñïåøÃî ñå ðåãèñòðèðà âòå è à âòîìà òñêè ñòå Ãà ¼à âåÃè!");
}
}
}
return 1;
}radice isto ko ovo:
CMD:register(playerid, params[])
{
if(GetPVarInt(playerid, "Logged")) return SendClientMessage(playerid, COLOR_ORANGE, "[*] You're already logged in!");
if(isnull(params)) return SendClientMessage(playerid, COLOR_ORANGE, "[*] Usage: /register ");
new Query, pName;
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
mysql_real_escape_string(pName, pName);
format(Query, sizeof Query, "SELECT * FROM `accounts` WHERE `Name` = '%s' LIMIT 1", pName);
mysql_query(Query);
mysql_store_result();
if(mysql_num_rows())
{
SendClientMessage(playerid, COLOR_ORANGE, "[*] An account already exists under that name! Use \"/login\" to log in!");
mysql_free_result();
return 1;
}
mysql_free_result();
WP_Hash(Query, 129, params);
new IP;
GetPlayerIp(playerid, IP, 16);
format(Query, sizeof Query, "INSERT INTO `accounts` (Name, Password, IP, Admin, Money, Score, Kills, Deaths) VALUES ('%s', '%s', '%s', %i, %i, %i, %i, %i)",
pName,
Query,
IP,
GetPVarInt(playerid, "Admin"),
GetPlayerMoney(playerid),
GetPlayerScore(playerid),
GetPVarInt(playerid, "Kills"),
GetPVarInt(playerid, "Deaths"));
mysql_query(Query);
SetPVarInt(playerid, "Logged", 1);
SendClientMessage(playerid, COLOR_LIMEGREEN, "[*] Succesfully registered and automatically logged in!");
return 1;
}Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
618
Postovi:
155
Teme:
Pridružio se:Apr. 2010
11. Maj 2011.
eXtreme wrote on May 11, 2011, 7:48 am:
Nece raditi jer nisi sve ubacio...
sta sam ispustio ?
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava