Skripta koju koristim: svoj mod od 0
Detaljan opis problema: želio bih u komandu /report ubacit ono da nemoze svake sekunde spamat na /report neg svake 1 min da moze /report pisat
Dio skripte:
if(strcmp(cmd, "/report", true) == 0)
{
if(IsPlayerConnected(playerid))
{
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, "Koristite: /report ");
return 1;
}
format(string, sizeof(string), "Report od %s: %s", sendername, (result));
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Slavonija: Hvala na upitu, Admini ce odgovoriti u najkracem roku!");
}
return 1;
}
[Pomoc]Kako da ubacim u komandu /report da igrac svake 1min moze /report pisat
1,774
pregleda
15
postova
Wheel Man
Novi Član
90 / 100 XP
🌱Početnik(0)
27
Postovi:
3
Teme:
Pridružio se:Mar. 2011
16. Mar. 2011.
Nemoj nista kopirati je sa time nikad nista neces nauciti!evo ti komanda i sve ostalo!
1: pronadi ((CTRL+F)) gSpeedo
ispod toga dodaj Report
2: pronadi ((CTRl+F))gSpeedo = 0;
i dodaj Report = 0;
3: Pronadi ((CTRL+F)) forward
i dodaj forward Reportp();
Komanda:
if(strcmp(cmd, "/report", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (Report == 0)
{
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_WHITE, "Koristite: /report ");
return 1;
}
format(string, sizeof(string), "||R|| %s: %s", sendername, (result));
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "Vas report je poslan svim online Administratorima!");
SetTimer("Reportp", 60000, 0); //60000 = 1min
Report = 1;
}
}
return 1;
}
i skroz na kraj scripte
public Reportp()
{
Report = 0;
}
1: pronadi ((CTRL+F)) gSpeedo
ispod toga dodaj Report
2: pronadi ((CTRl+F))gSpeedo = 0;
i dodaj Report = 0;
3: Pronadi ((CTRL+F)) forward
i dodaj forward Reportp();
Komanda:
if(strcmp(cmd, "/report", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (Report == 0)
{
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_WHITE, "Koristite: /report ");
return 1;
}
format(string, sizeof(string), "||R|| %s: %s", sendername, (result));
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "Vas report je poslan svim online Administratorima!");
SetTimer("Reportp", 60000, 0); //60000 = 1min
Report = 1;
}
}
return 1;
}
i skroz na kraj scripte
public Reportp()
{
Report = 0;
}
16. Mar. 2011.
ivica. wrote on March 16, 2011, 8:55 pm:
Nemoj nista kopirati je sa time nikad nista neces nauciti!evo ti komanda i sve ostalo!
1: pronadi ((CTRL+F)) gSpeedo
ispod toga dodaj Report
2: pronadi ((CTRl+F))gSpeedo = 0;
i dodaj Report = 0;
3: Pronadi ((CTRL+F)) forward
i dodaj forward Reportp();
Komanda:
if(strcmp(cmd, "/report", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (Report == 0)
{
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_WHITE, "Koristite: /report ");
return 1;
}
format(string, sizeof(string), "||R|| %s: %s", sendername, (result));
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "Vas report je poslan svim online Administratorima!");
SetTimer("Reportp", 60000, 0); //60000 = 1min
Report = 1;
}
}
return 1;
}
i skroz na kraj scripte
public Reportp()
{
Report = 0;
}
1: pronadi ((CTRL+F)) gSpeedo
ispod toga dodaj Report
2: pronadi ((CTRl+F))gSpeedo = 0;
i dodaj Report = 0;
3: Pronadi ((CTRL+F)) forward
i dodaj forward Reportp();
Komanda:
if(strcmp(cmd, "/report", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (Report == 0)
{
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_WHITE, "Koristite: /report ");
return 1;
}
format(string, sizeof(string), "||R|| %s: %s", sendername, (result));
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "Vas report je poslan svim online Administratorima!");
SetTimer("Reportp", 60000, 0); //60000 = 1min
Report = 1;
}
}
return 1;
}
i skroz na kraj scripte
public Reportp()
{
Report = 0;
}
Zasto nebih koristio Pvar? 😉
16. Mar. 2011.
Quote from March 16, 2011, 9:08 pm:
Zasto nebih koristio Pvar? 😉
pa koristi onda PVar...
Wheel Man
Novi Član
90 / 100 XP
🌱Početnik(0)
27
Postovi:
3
Teme:
Pridružio se:Mar. 2011
16. Mar. 2011.
Quote from March 16, 2011, 8:55 pm:
Nemoj nista kopirati je sa time nikad nista neces nauciti!evo ti komanda i sve ostalo!
1: pronadi ((CTRL+F)) gSpeedo
ispod toga dodaj Report
2: pronadi ((CTRl+F))gSpeedo = 0;
i dodaj Report = 0;
3: Pronadi ((CTRL+F)) forward
i dodaj forward Reportp();
Komanda:
if(strcmp(cmd, "/report", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (Report == 0)
{
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_WHITE, "Koristite: /report ");
return 1;
}
format(string, sizeof(string), "||R|| %s: %s", sendername, (result));
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "Vas report je poslan svim online Administratorima!");
SetTimer("Reportp", 60000, 0); //60000 = 1min
Report = 1;
}
}
return 1;
}
i skroz na kraj scripte
public Reportp()
{
Report = 0;
}
1: pronadi ((CTRL+F)) gSpeedo
ispod toga dodaj Report
2: pronadi ((CTRl+F))gSpeedo = 0;
i dodaj Report = 0;
3: Pronadi ((CTRL+F)) forward
i dodaj forward Reportp();
Komanda:
if(strcmp(cmd, "/report", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (Report == 0)
{
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_WHITE, "Koristite: /report ");
return 1;
}
format(string, sizeof(string), "||R|| %s: %s", sendername, (result));
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "Vas report je poslan svim online Administratorima!");
SetTimer("Reportp", 60000, 0); //60000 = 1min
Report = 1;
}
}
return 1;
}
i skroz na kraj scripte
public Reportp()
{
Report = 0;
}
Zasto nebih koristio Pvar? 😉
zato sto nezna ni ovaku komandu napravit a ne da se sa pvarovima drka jos,daj malo ukljucite logiku!
Wheel Man
Novi Član
90 / 100 XP
🌱Početnik(0)
27
Postovi:
3
Teme:
Pridružio se:Mar. 2011
16. Mar. 2011.
hood9 wrote on March 16, 2011, 9:29 pm:
daj ti decko odjebi disi ti bio kad sam komande radio sam ovo neznam žvaljo jedan žvaljavi
1 prijava smodu/gmodu
2 vidim kako rasi komande HAHHA
Wheel Man
Novi Član
90 / 100 XP
🌱Početnik(0)
27
Postovi:
3
Teme:
Pridružio se:Mar. 2011
16. Mar. 2011.
hood9 wrote on March 16, 2011, 9:32 pm:
stas ti prijavit cobane jedan ak nes pomoc Odj... od ove TEME
e a cuj ti sebe ajd digni malo nos nebudi toliko ljen i digni stranicu pa pogledaj moj post gdje ti pise cijela komanda,a bota majke ti mile i ide jos jedna prijava!😘*
Wheel Man
Novi Član
90 / 100 XP
🌱Početnik(0)
27
Postovi:
3
Teme:
Pridružio se:Mar. 2011
17. Mar. 2011.
ivica. wrote on March 16, 2011, 8:55 pm:
Nemoj nista kopirati je sa time nikad nista neces nauciti!evo ti komanda i sve ostalo!
1: pronadi ((CTRL+F)) gSpeedo
ispod toga dodaj Report
2: pronadi ((CTRl+F))gSpeedo = 0;
i dodaj Report = 0;
3: Pronadi ((CTRL+F)) forward
i dodaj forward Reportp();
Komanda:
if(strcmp(cmd, "/report", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (Report == 0)
{
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_WHITE, "Koristite: /report ");
return 1;
}
format(string, sizeof(string), "||R|| %s: %s", sendername, (result));
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "Vas report je poslan svim online Administratorima!");
SetTimer("Reportp", 60000, 0); //60000 = 1min
Report = 1;
}
}
return 1;
}
i skroz na kraj scripte
public Reportp()
{
Report = 0;
}
1: pronadi ((CTRL+F)) gSpeedo
ispod toga dodaj Report
2: pronadi ((CTRl+F))gSpeedo = 0;
i dodaj Report = 0;
3: Pronadi ((CTRL+F)) forward
i dodaj forward Reportp();
Komanda:
if(strcmp(cmd, "/report", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (Report == 0)
{
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_WHITE, "Koristite: /report ");
return 1;
}
format(string, sizeof(string), "||R|| %s: %s", sendername, (result));
ABroadCast(COLOR_YELLOW,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "Vas report je poslan svim online Administratorima!");
SetTimer("Reportp", 60000, 0); //60000 = 1min
Report = 1;
}
}
return 1;
}
i skroz na kraj scripte
public Reportp()
{
Report = 0;
}
SetTimerEx
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava