[POMOC]/f chat,autosalon

Započeo MatijaCH, Mart 13, 2011, 11:00:40 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Cyber
Detaljan opis problema:Ovako iam probl sa /f chat kad netko pise na /f chat server se restarta.....ima jos jedan probl kad netko kupi auto kada ode relog on ga visde nema...
Dio skripte:CMD:f(playerid, params[])
{
new result,string[64];
new leader = PlayerInfo[playerid][Lider];
new member = PlayerInfo[playerid][Clan];
if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid, NARANDZASTA, "Ne mozes pricati! Usutkan si.");
if(sscanf(params,"s[64]",result)) return SendClientMessage(playerid, NARANDZASTA, "Koristi: /f (text)!");
if (gTeam[playerid] < 1) return SendClientMessage(playerid, COLOR_GRAD2, "Nisi clan Mafije/Bande!");
/*if(member==1)//POLICIJA
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Zapovednik %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Kapetan %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Porucnik %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Narednik %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Cinovnik %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Kadet %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Kadet %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==2)//F.B.I
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Director %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Deputy Director %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Special Agent-in-Charge %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Senior Special Agent %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Special Agent %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Probationary Agent %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Probationary Agent %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}*/
else if(member==3)//BALLAS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Top O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Double O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Original Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Original Young Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Young Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Little Young Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Little Young Gangster %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==4)//HITNA POMOC
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Upravitelj %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Zamenik Upravitelja %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Specijalni Kirurg %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Kirurg %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Doktor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Student %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Student %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==5)//CORLEONE's
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Don Corleone %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Considerer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Capo %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Soldiers %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Associates %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Associates %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==6)//BLACK DRAGON TRIADS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Godfather %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Right Hand %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Miembro %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Capo %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==7)//PREDSEDNIK
{
if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "*(( Prigovornik %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Politicar %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Prigovornik %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Prigovornik %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==8)//GROVE STREET
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Top O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Warlord %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Thug %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Hustler %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Grove Begginer %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Grove Begginer %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==9)//NOVINAR
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Network Producer %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Network Editor %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Network Anchor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Local Editor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Local Reporter %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Intern %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "**(( Intern %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==10)//TAXI
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Taxi Company Owner %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Shift Supervisor %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Dispatcher %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Cabbie %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Taxi Rookie %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Trainee %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "**((Trainee %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==11)//HITMAN
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Boss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( UnderBoss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Mafer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Extra Killer 3 %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Killer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==12)//CRIPS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Top O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Double O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Original Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Baby Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Tiny Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Begginer Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Begginer Gangster %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==13)//STREET RACERS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Master Racer %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Pr0 Racer %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Fast Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Street Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Little Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Little Racer %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==14)//VINCIE
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Don %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Padrino %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( LaManoDestra %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Capitano %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Soldato %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Ragazzi %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Ragazzi %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==15)//L.C.N
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Boss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Advisor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Warrior %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Associate %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(leader >= 1 && leader <= 15)
{
format(string, sizeof(string), "(( Lider %s: %s. )) **", ImeIgraca(playerid), result);
SendFamilyMessage(PlayerInfo[playerid][Lider], SVETLOZELENA, string);
}
else if(PlayerInfo[playerid][pFMember] < 255)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Godfather %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Capo %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soldier %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Associate %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "** Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendNewFamilyMessage(PlayerInfo[playerid][pFMember], LJUBICASTA, string);
}
printf("%s", string);
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Vise ne skriptam!!!
Ako vam treba pomoc oko PC-a posaljite mi PM...pomoc cu vam ako znam !

Krositi [code=c] kod [ /code ]...
Daj nam SendFamilyMessage (mozda je greska u njemu sad cu pogledati ovaj kod)[/code]
Poslednja Izmena: Mart 13, 2011, 12:43:48 POSLE PODNE od eXtreme

Za /f xcaht nemam pojma još nešto skriptam za /f chat.. Teško.. :) al za autosalon samo zamjeni


if(listitem == 3) // parkiranje vozila
{
if(CarOwnVozilo(GetPlayerVehicleID(playerid)))
{
if(strcmp(CoSInfo[ownvozilo][vVlasnik],GetName(playerid), false) == 0)
{
new amod = GetVehicleModel(GetPlayerVehicleID(playerid));
new Float:x,Float:y,Float:z,Float:a;
GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z); GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
CoSInfo[ownvozilo][LocX] = x;
CoSInfo[ownvozilo][LocY] = y;
CoSInfo[ownvozilo][LocZ] = z;
CoSInfo[ownvozilo][Kut] = a;
SpremanjeVozila(ownvozilo);
DestroyVehicle(GetPlayerVehicleID(playerid));
CreateVehicle(amod,x,y,z+1.0,a,CoSInfo[ownvozilo][vBoja1],CoSInfo[ownvozilo][vBoja2], 1200000);
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid, "~y~vozilo~n~preparkirano", 10000, 3);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Nisi u owner vozilu.");
}
}

/

Umjesto taj tvoji kod stavi ovaj:


CMD:f(playerid, params[])
{
new result,string[64];
new leader = PlayerInfo[playerid][Lider];
new member = PlayerInfo[playerid][Clan];
if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid, NARANDZASTA, "Ne mozes pricati! Usutkan si.");
if(sscanf(params,"s[64]",result)) return SendClientMessage(playerid, NARANDZASTA, "Koristi: /f (text)!");
if (gTeam[playerid] < 1) return SendClientMessage(playerid, COLOR_GRAD2, "Nisi clan Mafije/Bande!");
if(member==1)//POLICIJA
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Zapovednik %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Kapetan %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Porucnik %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Narednik %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Cinovnik %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Kadet %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Kadet %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==2)//F.B.I
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Director %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Deputy Director %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Special Agent-in-Charge %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Senior Special Agent %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Special Agent %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Probationary Agent %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Probationary Agent %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==3)//BALLAS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Top O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Double O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Original Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Original Young Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Young Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Little Young Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Little Young Gangster %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==4)//HITNA POMOC
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Upravitelj %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Zamenik Upravitelja %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Specijalni Kirurg %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Kirurg %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Doktor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Student %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Student %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==5)//CORLEONE's
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Don Corleone %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Considerer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Capo %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Soldiers %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Associates %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Associates %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==6)//BLACK DRAGON TRIADS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Godfather %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Right Hand %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Miembro %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Capo %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==7)//PREDSEDNIK
{
if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "*(( Prigovornik %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Politicar %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Prigovornik %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Prigovornik %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==8)//GROVE STREET
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Top O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Warlord %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Thug %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Hustler %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Grove Begginer %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Grove Begginer %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==9)//NOVINAR
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Network Producer %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Network Editor %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Network Anchor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Local Editor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Local Reporter %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Intern %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "**(( Intern %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==10)//TAXI
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Taxi Company Owner %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Shift Supervisor %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Dispatcher %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Cabbie %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Taxi Rookie %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Trainee %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "**((Trainee %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==11)//HITMAN
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Boss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( UnderBoss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Mafer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Extra Killer 3 %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Killer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==12)//CRIPS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Top O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Double O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Original Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Baby Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Tiny Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Begginer Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Begginer Gangster %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==13)//STREET RACERS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Master Racer %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Pr0 Racer %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Fast Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Street Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Little Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Little Racer %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==14)//VINCIE
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Don %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Padrino %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( LaManoDestra %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Capitano %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Soldato %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Ragazzi %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Ragazzi %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==15)//L.C.N
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(( Boss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(( Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(( Advisor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(( Warrior %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(( Associate %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(( Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "(( Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(leader >= 1 && leader <= 15)
{
format(string, sizeof(string), "(( Lider %s: %s. )) **", ImeIgraca(playerid), result);
SendFamilyMessage(PlayerInfo[playerid][Lider], SVETLOZELENA, string);
}
else if(PlayerInfo[playerid][pFMember] < 255)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Godfather %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Capo %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soldier %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Associate %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "** Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendNewFamilyMessage(PlayerInfo[playerid][pFMember], LJUBICASTA, string);
}
printf("%s", string);
return 1;
}




Citat: eXtreme poslato Mart 13, 2011, 12:42:21 POSLE PODNE


Krositi [code=c] kod [ /code ]...
Daj nam SendFamilyMessage (mozda je greska u njemu sad cu pogledati ovaj kod)[/code]

Nije greska u SendFamilyMessage vec je gore nesto stavljeno u /* */ pa mislim da to pravi problem..
Poslednja Izmena: Mart 13, 2011, 14:07:06 POSLE PODNE od Luciano Verdi



To nemoze da pravi problem  :D Zato sto je zatvoreno /* */
To ako obrise moci ce i policija /family chat /f...
Taj F chat nista nevalja sad sam ga pogledao u Cyber modu...

Citat: eXtreme poslato Mart 13, 2011, 14:24:15 POSLE PODNE
To nemoze da pravi problem  :D Zato sto je zatvoreno /* */
To ako obrise moci ce i policija /family chat /f...
Taj F chat nista nevalja sad sam ga pogledao u Cyber modu...

Pa nesto je Joxy pricao o tome i valjda je u toga problem, ajde pogledacu opet..



opet nece /f ja upisem /f i odmami se server restarta
Vise ne skriptam!!!
Ako vam treba pomoc oko PC-a posaljite mi PM...pomoc cu vam ako znam !