Pitanje: Kako da namestim da kada uradim /cc da se igracima obrise cet, a adminima i helperima ostane chat?
Komentar:Hvala unapred!
[pawn]YCMD:cc(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,".::(( UltraG ))::.| "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(gettime() < cctime) return SCM(playerid,-1,".::(( UltraG ))::.| "ZUTA"Chat je vec ociscen, moras sacekati 5 sekundi!");
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[ playerid ][pGM] >= 1) {
foreach(Player,i) { OcistiChat(i, 120); }
new string[160];
if(PlayerInfo[playerid][pVlasnik] == 0) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Vlasnika "SRWBOJA"'%s' "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid )); }
else if(PlayerInfo[playerid][pAdmin] == 6) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Direktora "SRWBOJA"'%s' "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
else if(PlayerInfo[playerid][pAdmin] == 5) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Head Admina "SRWBOJA"'%s' "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
else if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[ playerid ][ pAdmin ] <= 4 ) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Administratora "SRWBOJA"'%s' "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
else if(PlayerInfo[playerid][pGM] >= 1) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Helpera "SRWBOJA"'%s' "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
SendClientMessageToAll(-1, string);
cctime = gettime() + 5;
}
else return SCM(playerid, -1, ".::(( UltraG ))::. "ZUTA"Samo Admini & Helperi!");
return 1;
}[/pawn]
foreach(Player,i) { if (PlayerInfo[playerid][pAdmin] == PlayerInfo[playerid][pGM] == 0) OcistiChat(i, 120); }
Pokusaj ovako?
Citat: xᴜɴá´...ᴇʀ poslato Decembar 02, 2017, 01:25:39 PRE PODNE
foreach(Player,i) { if (PlayerInfo[playerid][pAdmin] == PlayerInfo[playerid][pGM] == 0) OcistiChat(i, 120); }
Pokusaj ovako?
Hmm :( nece baci mi warning ne slozim lepo to mozes li da mi zalepis pawn?
Gde to tacno da stavim ??
YCMD:cc(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,".::(( UltraG ))::.| "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(gettime() < cctime) return SCM(playerid,-1,".::(( UltraG ))::.| "ZUTA"Chat je vec ociscen, moras sacekati 5 sekundi!");
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[ playerid ][pGM] >= 1) {
foreach(Player,i) {
if (PlayerInfo[i][pAdmin] == PlayerInfo[i][pGM] == 0)
OcistiChat(i, 120);
}
new string[160];
if(PlayerInfo[playerid][pVlasnik] == 0) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Vlasnika "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid )); }
else if(PlayerInfo[playerid][pAdmin] == 6) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Direktora "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
else if(PlayerInfo[playerid][pAdmin] == 5) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Head Admina "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
else if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[ playerid ][ pAdmin ] <= 4 ) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Administratora "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
else if(PlayerInfo[playerid][pGM] >= 1) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Helpera "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
SendClientMessageToAll(-1, string);
cctime = gettime() + 5;
}
else return SCM(playerid, -1, ".::(( UltraG ))::. "ZUTA"Samo Admini & Helperi!");
return 1;
}
[pawn]C:\Users\karapampula\Desktop\Ultra Gaming\gamemodes\UGRPG.pwn(30630) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.[/pawn]
evo je linija
[pawn] if (PlayerInfo[pAdmin] == PlayerInfo[pGM] == 0)[/pawn]
Evo ubacio i nece?? Ovo i malopre mi izbaciolo :(
Citat: #Stefke poslato Decembar 02, 2017, 03:59:37 PRE PODNE
[pawn]C:\Users\karapampula\Desktop\Ultra Gaming\gamemodes\UGRPG.pwn(30630) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.[/pawn]
evo je linija
[pawn] if (PlayerInfo[pAdmin] == PlayerInfo[pGM] == 0)[/pawn]
Evo ubacio i nece?? Ovo i malopre mi izbaciolo :(
[pawn]if (PlayerInfo
[pAdmin] == PlayerInfo[pGM] == 0)[/pawn]
sta tacno predstavlja ovo? if(PlayerInfo[pAdmin] == 0 || PlayerInfo[pGM] == 0)
Pokušaj ovako.
[pawn]YCMD:cc(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,".::(( UltraG ))::.| "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(gettime() < cctime) return SCM(playerid,-1,".::(( UltraG ))::.| "ZUTA"Chat je vec ociscen, moras sacekati 5 sekundi!");
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[ playerid ][pGM] >= 1) {
foreach(Player,i) { if (PlayerInfo[pAdmin] == 0 && PlayerInfo[pGM] == 0) OcistiChat(i, 120); }
new string[160];
if(PlayerInfo[playerid][pVlasnik] == 0) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Vlasnika "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid )); }
else if(PlayerInfo[playerid][pAdmin] == 6) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Direktora "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
else if(PlayerInfo[playerid][pAdmin] == 5) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Head Admina "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
else if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[ playerid ][ pAdmin ] <= 4 ) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Administratora "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
else if(PlayerInfo[playerid][pGM] >= 1) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Helpera "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
SendClientMessageToAll(-1, string);
cctime = gettime() + 5;
}
else return SCM(playerid, -1, ".::(( UltraG ))::. "ZUTA"Samo Admini & Helperi!");
return 1;
}[/pawn]
Citat: Slade poslato Decembar 02, 2017, 11:53:26 PRE PODNE
Pokušaj ovako.
[pawn]YCMD:cc(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,".::(( UltraG ))::.| "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(gettime() < cctime) return SCM(playerid,-1,".::(( UltraG ))::.| "ZUTA"Chat je vec ociscen, moras sacekati 5 sekundi!");
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[ playerid ][pGM] >= 1) {
foreach(Player,i) { if (PlayerInfo[pAdmin] == 0 && PlayerInfo[pGM] == 0) OcistiChat(i, 120); }
new string[160];
if(PlayerInfo[playerid][pVlasnik] == 0) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Vlasnika "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid )); }
else if(PlayerInfo[playerid][pAdmin] == 6) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Direktora "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
else if(PlayerInfo[playerid][pAdmin] == 5) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Head Admina "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
else if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[ playerid ][ pAdmin ] <= 4 ) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Administratora "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
else if(PlayerInfo[playerid][pGM] >= 1) { format( string, sizeof( string ), ""SRWBOJA"[UG:RPG]: "BELA"Chat ocisten od strane Helpera "SRWBOJA"`%s` "BELA"|| "SRWBOJA".::(( UltraG ))::.", GetName(playerid)); }
SendClientMessageToAll(-1, string);
cctime = gettime() + 5;
}
else return SCM(playerid, -1, ".::(( UltraG ))::. "ZUTA"Samo Admini & Helperi!");
return 1;
}[/pawn]
Hvalaa ti radi sveee!!
Hvalaa punoooo! 8) 8) 8)