[Pomoc] /R i /D

Započeo Petar Pan, Jul 24, 2011, 16:44:09 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:PG
Detaljan opis problema:Kako da ciu na radio ubacim?
Dio skripte:////////
Neke slike/video za lakse dobivanje pomoci(neobavezno)://////////

/d

Skripta koju koristim:PG
Detaljan opis problema:Kako da ciu na /d uvedem
Dio skripte:///////
Neke slike/video za lakse dobivanje pomoci(neobavezno):///////

bravo... evo kako: abrakadabra ubaci CIA-u na /r i /d chatove..

eto stalvjeno ti je u mod!

ajde davaj komande /r i /d chata i koji je ID organizaijca CIA-e

else if(PlayerInfo[playerid][pMember] ==IDORG || PlayerInfo[playerid][pLeader] == ID ORG)
{
   if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Doktor %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Hirurg %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Med. Sestra %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Asistent %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Stazista %s: %s, over. **", sendername, result); }
else
{
format(string, sizeof(string), "** Stazista %s: %s, over. **", sendername, result);
}
SendRadioMessage(3, 0x0003FF7B, string);
printf("%s", string);
return 1;
}


promeni rankove i eto ti... -.-

To ti je R tako iz D
Poslednja Izmena: Jul 24, 2011, 16:49:34 POSLE PODNE od [A]hidroKrilac
//

ok napravio sam a nemoze nista napisati sve sto napisem nista se nevidi!

Citat: Petar Pan poslato Jul 24, 2011, 16:50:06 POSLE PODNE
ok napravio sam a nemoze nista napisati sve sto napisem nista se nevidi!

Daj svoju R i D komandu i molim te razdvoji ih i nema budu u pawno kodu
//

CMD:r(playerid, params[])
{
new sendername[MAX_PLAYER_NAME];
new idx;
new string[128];
   if(IsPlayerConnected(playerid))
   {
 if(PlayerInfo[playerid][pMuted] == 1)
{
format(string, sizeof(string), " {FFFF80}BosnaCity| {FF4444}Ne mozes pricati jer si utisan! Preostalo vrijeme: {FFFF80}%d sekundi(%d minuta)", PlayerInfo[playerid][pMuteTime], (PlayerInfo[playerid][pMuteTime]/60)+1);
SCM(playerid, 0xFF4444FF, string);
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(params);
while ((idx < length) && (params[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = params[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} (/r)adio [radio chat]");
return 1;
}
new brojevi[] = { '1','2','3','4','5','6','7','8','9'};
for(new b = 0; b < sizeof brojevi; b++)
{
new tekst = strlen(result);
for(new i = 0; i<tekst; i++)
{
if(result[i] == brojevi[b])
result[i] = '*' ;
}
}
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Nacelnik %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Kapiten %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Porucnik %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Narednik %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Policajac %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Cadet %s: %s, over. **", sendername, result); }
else
{
format(string, sizeof(string), "** Cadet %s: %s, over. **", sendername, result);
}
SendRadioMessage(1, 0x0003FF7B, string);
printf("%s", string);
return 1;
}
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
   if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Asistent %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Tajni agent %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Undercover %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Agent %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Pocetnik %s: %s, over. **", sendername, result); }
else
{
format(string, sizeof(string), "** Agent %s: %s, over. **", sendername, result);
}
SendTeamMessage(1, 0x42A0A0FF, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
   if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Asistent %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Specijalni agent %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Agent %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Cadet %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Pomagac %s: %s, over. **", sendername, result); }
else
{
format(string, sizeof(string), "** Pomagac %s: %s, over. **", sendername, result);
}
SendRadioMessage(2, 0x0003FF7B, string);  
printf("%s", string);  
return 1;
}
else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
   if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Asistent %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Tajni agent %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Undercover %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Agent %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Pocetnik %s: %s, over. **", sendername, result); }
else
{
format(string, sizeof(string), "** Pocetnik %s: %s, over. **", sendername, result);
}
SendRadioMessage(2, 0x0003FF7B, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
   if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** General %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Porucnik %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Kapiten %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Major %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Narednik %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Cadet %s: %s, over. **", sendername, result); }
else
{
format(string, sizeof(string), "** Cadet %s: %s, over. **", sendername, result);
}
SendRadioMessage(3, 0x0003FF7B, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
   if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Doktor %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Hirurg %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Med. Sestra %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Asistent %s: %s, over. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Stazista %s: %s, over. **", sendername, result); }
else
{
format(string, sizeof(string), "** Stazista %s: %s, over. **", sendername, result);
}
SendRadioMessage(3, 0x0003FF7B, string);
printf("%s", string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nisi dio Tima !");
return 1;
}
}
return 1;
}

============================================================================

CMD:d(playerid, params[])
{
new sendername[MAX_PLAYER_NAME];
new idx;
new string[128];
   if(IsPlayerConnected(playerid))
   {
 if(PlayerInfo[playerid][pMuted] == 1)
{
format(string, sizeof(string), " {FFFF80}BosnaCity| {FF4444}Ne mozes pricati jer si utisan! Preostalo vrijeme: {FFFF80}%d sekundi(%d minuta)", PlayerInfo[playerid][pMuteTime], (PlayerInfo[playerid][pMuteTime]/60)+1);
SCM(playerid, 0xFF4444FF, string);
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(params);
while ((idx < length) && (params[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = params[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561}(/d)epartment [chat]");
return 1;
}
new brojevi[] = { '1','2','3','4','5','6','7','8','9'};
for(new b = 0; b < sizeof brojevi; b++)
{
new tekst = strlen(result);
for(new i = 0; i<tekst; i++)
{
if(result[i] == brojevi[b])
result[i] = '*' ;
}
}
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
   if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "{3E3E9F}** (PD)Nacelnik %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "{3E3E9F}** (PD)Kapiten %s:{AAAAD4} %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "{3E3E9F}** (PD)Porucnik %s:{AAAAD4} %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "{3E3E9F}** (PD)Narednik %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "{3E3E9F}** (PD)Policajac %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "{3E3E9F}** (PD)Cadet %s:{AAAAD4} %s, prijem. **", sendername, result); }
else
{
format(string, sizeof(string), "{3E3E9F}** (PD)Policajac %s:{AAAAD4} %s, prijem. **", sendername, result);
}
SendTeamMessage(1, 0x42A0A0FF, string);
printf("%s", string);
return 1;
}
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
   if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "{3E3E9F}** (CIA)Director %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "{3E3E9F}** (CIA)Asistent %s:{AAAAD4} %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "{3E3E9F}** (CIA)Tajni agent %s:{AAAAD4} %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "{3E3E9F}** (CIA)Undercover %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "{3E3E9F}** (CIA)Agent %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "{3E3E9F}** (CIA)Pocetnik %s:{AAAAD4} %s, prijem. **", sendername, result); }
else
{
format(string, sizeof(string), "{3E3E9F}** (CIA)Agent %s:{AAAAD4} %s, prijem. **", sendername, result);
}
SendTeamMessage(1, 0x42A0A0FF, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
   if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "{3E3E9F}** (FBI)Director %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "{3E3E9F}** (FBI)Asistent %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "{3E3E9F}** (FBI)Specijalni agent %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "{3E3E9F}** (FBI)Agent %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "{3E3E9F}** (FBI)Cadet %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "{3E3E9F}** (FBI)Pomagac %s:{AAAAD4} %s, prijem. **", sendername, result); }
else
{
format(string, sizeof(string), "{3E3E9F}** (FBI)Pocetnik %s:{AAAAD4} %s, prijem. **", sendername, result);
}

SendTeamMessage(1, 0x42A0A0FF, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
   if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "{3E3E9F}** (SWAT)General %s:{AAAAD4} %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "{3E3E9F}** (SWAT)Porucnik %s:{AAAAD4} %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "{3E3E9F}** (SWAT)Kapiten %s:{AAAAD4} %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "{3E3E9F}** (SWAT)Major %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "{3E3E9F}** (SWAT)Narednik %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "{3E3E9F}** (SWAT)Cadet %s: {AAAAD4}%s, prijem. **", sendername, result); }
else
{
format(string, sizeof(string), "{3E3E9F}** (SWAT)Pocetnik %s: {AAAAD4}%s, prijem. **", sendername, result);
}

SendTeamMessage(1, 0x42A0A0FF, string);
printf("%s", string);
return 1;
}
else if(gTeam[playerid] == 1 || PlayerInfo[playerid][pMember]==4 || PlayerInfo[playerid][pLeader]==4)
{
 if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "{3E3E9F}** (MD)Director %s: {AAAAD4}%s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "{3E3E9F}** (MD)Doktor %s:{AAAAD4} %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "{3E3E9F}** (MD)Hirurg %s:{AAAAD4} %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "{3E3E9F}** (MD)Med. Sestra %s:{AAAAD4} %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "{3E3E9F}** (MD)Asistent %s:{AAAAD4} %s, prijem. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "{3E3E9F}** (MD)Stazista %s:{AAAAD4} %s, prijem. **", sendername, result); }
else
{
format(string, sizeof(string), "{3E3E9F}** (MD)Stazista %s:{AAAAD4} %s, prijem. **", sendername, result);
}

SendTeamMessage(1, 0x42A0A0FF, string);
printf("%s", string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nisi dio Tima !");
return 1;
}
}
return 1;
}
Poslednja Izmena: Jul 24, 2011, 16:57:04 POSLE PODNE od Petar Pan

1. Reci koji je ID CIA-e kao organizaicje

2. Molim te stavi ove dvije komande u razlicita dva BOX-a zvanog CODE!


dajm i komande /d i /r ... ali stavi ih u komande jer ovako nista nerazumin