[POMOC]/stats i /ban

Započeo Dane
15. Jun 2011.
895
pregleda
8
postova
Non-Stop Samper
5
Underboss
15. Jun 2011.
Skripta koju koristim:GF(prevedeni)
Detaljan opis problema:Ovako ja nezz kako da stavim da kad nekom dadnem BAN da to izgleda igraču ovako:http://www.zaslike.com/files/04cphnvvl8pzwigy1q1.png    a kako da stavim ovo za /stats(/podaci) da bude ovako isto et malo drugačije Å¡ta nemam da izbriÅ¡em:http://www.zaslike.com/files/y9laoatdilz6m0fe2g0.png
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Luis
5
Godfather
15. Jun 2011.
Dio skripte: ?? postaj komande /ban i /stats pa cu uradit tako da ti bude.
Non-Stop Samper
5
Underboss
15. Jun 2011.
Evo za /ban:
	if(strcmp(cmd, "/ban", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /ban [playerid/PartOfName] ");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo >= 2)
{
    if(IsPlayerConnected(giveplayerid))
    {
        if(giveplayerid != INVALID_PLAYER_ID)
        {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
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, "USAGE: /ban [playerid/PartOfName] ");
return 1;
}
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "AdmCmd: %s je banan od %s, razlog: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);
BanLog(string);
format(string, sizeof(string), "AdmCmd: %s je banan od %s, razlog: %s", giveplayer, sendername, (result));
SendClientMessageToAll(COLOR_LIGHTRED, string);
PlayerInfo = PlayerInfo;
PlayerInfo = -999;
Ban(giveplayerid);
return 1;
}
}//not connected
}
else
{
format(string, sizeof(string), "  %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}


A evo za /stats(/podaci):
	if (strcmp(cmd, "/podaci", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (gPlayerLogged != 0)
{
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Igrac %s vadi svoju osobnu iskaznicu i gleda u podatke.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Nisi ulogiran/a !");
}
}
return 1;
}
Dave
5
Underboss
15. Jun 2011.
OFF:Vidim da neigram samo ja na NL na ovom forumu

ON:Koristi SendClientMessage(playerid, boja, "text"); da to napravis
Non-Stop Samper
5
Underboss
15. Jun 2011.
Oće mi neko napravit(pomoc) ili??
Dave
5
Underboss
15. Jun 2011.
Dao sam ti odgovor u gornjem postu,sta bzvz spammas samo dodas u komandu ban SendClientMessage(playerid, boja, "text");

Zar je to tako tesko
Mario_97so
4
Shot Caller
15. Jun 2011.
Idi u GM,CTRL+F i kucaj Public ShowStats
Kad to nadjes,kopiraj i daj nam ovde...

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha