Skripta koju koristim: lsrp
Detaljan opis problema: Kako da napravim /new(bie chat) , i kako da napravim /help komandu? hvala.
Dio skripte: -
Neke slike/video za lakse dobivanje pomoci(neobavezno): -
[POMOC] /new , /help
645
pregleda
6
postova
4. Jun 2011.
Evo ti sto si trazio:
Za ugasiti i upaliti newbie :
za help neka ti netko drugi stavi
if(strcmp(cmd, "/newbienewbie", true) == 0 || strcmp(cmd, "/n", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nemozes pricati,usutkan si");
return 1;
}
if(nonewbie == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Newbie chat je iskljucen.");
return 1;
}
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: (/n)ewbie [newbie chat]");
return 1;
}
if(PlayerInfo == 0)
{
format(string, sizeof(string), ": Newbie %s: %s", sendername, result);
}
else if(PlayerInfo == 1)
{
format(string, sizeof(string), ": Helper %s: %s", sendername, result);
}
else if(PlayerInfo == 2)
{
format(string, sizeof(string), ": Master %s: %s", sendername, result);
}
else if(PlayerInfo == 3)
{
format(string, sizeof(string), ": Administrator %s: %s", sendername, result);
}
SendClientMessageToAll(0x62B382AA, string);
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 (newbie): (%s)",d,m,y,h,mi,s, sendername, result);
ChatLog(string);
}
return 1;
}Za ugasiti i upaliti newbie :
if(strcmp(cmd, "/nonewbie", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo >= 2 && (!nonewbie))
{
nonewbie = 1;
BroadCast(COLOR_NICERED, "** Newbie chat je ugasen od strane Admina !");
format(string, sizeof(string), ": %s je ugasio Newbie Chat", sendername);
ABroadCast(COLOR_LIGHTRED, string, 5);
}
else if (PlayerInfo >= 2 && (nonewbie))
{
nonewbie = 0;
BroadCast(TEAM_GROVE_COLOR, "** Newbie chat je upaljen od strane Admina !");
format(string, sizeof(string), ": %s je upalio Newbie Chat", sendername);
ABroadCast(COLOR_LIGHTRED, string, 5);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "(Odbijeno)Nemozes Koristiti ovu Komandu!");
}
}
return 1;
}za help neka ti netko drugi stavi
Godfather
Novi Član
240 / 250 XP
🌱Početnik(0)
2,079
Postovi:
24
Teme:
Pridružio se:Feb. 2011
4. Jun 2011.
Kako znas da bas ima te posove i komande ??
nemoj stavljati taj help nego odes i vidis tut kako napraviti dialog i sam si npravis statse u dialogu. http://balkan-samp.com/forum/index.php?topic=23097.0
ili ako zelis imas i u textdrawu statse.
@@ apokalipsa izbacit ce mu u tvojoj komandi par erora.
prvo nisi
nemoj stavljati taj help nego odes i vidis tut kako napraviti dialog i sam si npravis statse u dialogu. http://balkan-samp.com/forum/index.php?topic=23097.0
ili ako zelis imas i u textdrawu statse.
@@ apokalipsa izbacit ce mu u tvojoj komandi par erora.
prvo nisi
new nonewbie = 0;Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava