10.11.2013, 03:25
Necesito saber como se asen comandos con ! y !! (! [texto])
Ej: ! Holaa
En ves de usar / usar !
Ej: ! Holaa
En ves de usar / usar !
public OnPlayerText(playerid, text[])
{
if(strcmp(text, "!comando", false))
{
// Cуdigo a ejecutar.
}
return 1;
}
Es sumamente facil.
pawn Код:
|
public OnPlayerText(playerid, text[])
{
if(strcmp(text, "!comando", false))
{
if(!IsPlayerConnected(playerid)) return SendClientMessageEx(playerid, COLOR_GRAD2, "No estбs conectado.");
if(nofac == 1 && Info[playerid][pLeader] < 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "El Chat de faccion esta bloqueado");
if(!isnull(params))
{
new string[128];
if (Info[playerid][pLeader] > 0 || Info[playerid][pMember] > 0 || Info[playerid][pFMember] < 255)
{
new member = Info[playerid][pMember];
new fam = Info[playerid][pFMember];
if(member==1) //SAPD
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Comandante %s: %s ", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Teniente %s: %s ", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Sargento %s: %s ", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Detective %s: %s ", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Oficial %s: %s ", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Cadete %s: %s ", GetPlayerNameEx(playerid), params); }
else { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Cadete %s: %s", GetPlayerNameEx(playerid), params); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==2) // FBI
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Sub-Director %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Agente Especializado %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Agente Especial %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Agente Superior %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Agente %s: %s )) **", GetPlayerNameEx(playerid), params); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==3) //MILITAR
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Coronel %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Mayor %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Capitan %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Sargento %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Soldado %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Cabo %s: %s )) **", GetPlayerNameEx(playerid), params); }
else { format(string, sizeof(string), "** (( Cadete %s: %s )) **", GetPlayerNameEx(playerid), params); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==4) //Medico
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Responsable tйcnico %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Supervisor %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Mйdico %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Paramйdico %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Prбctico %s: %s )) **", GetPlayerNameEx(playerid), params); }
else { format(string, sizeof(string), "** (( Prбctico %s: %s )) **", GetPlayerNameEx(playerid), params); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==5) // CNN
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director SA News %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Presentador %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Enviado Especial %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Periodista %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Redactor %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Becario %s: %s )) **", GetPlayerNameEx(playerid), params); }
else { format(string, sizeof(string), "** (( Becario %s: %s )) **", GetPlayerNameEx(playerid), params); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==6)
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Supervisor %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Ingeniero %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Mecбnico %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Trucker %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Ayudante %s: %s )) **", GetPlayerNameEx(playerid), params); }
else { format(string, sizeof(string), "** (( Ayudante %s: %s )) **", GetPlayerNameEx(playerid), params); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==7) // Gobierno
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Presidente %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Vice-Presidente %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Ministro %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Alcalde %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Secretario %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Staff %s: %s )) **", GetPlayerNameEx(playerid), params); }
else { format(string, sizeof(string), "** (( Ministro %s: %s )) **", GetPlayerNameEx(playerid), params); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==8) // Hitman
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Vice-Director %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Agente Especial %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Sicario %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Asesino %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Novato %s: %s )) **", GetPlayerNameEx(playerid), params); }
else { format(string, sizeof(string), "** (( Novato %s: %s )) **", GetPlayerNameEx(playerid), params); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==9) // S Judicial
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director G. %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Asociado %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Juez %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Fiscal %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Secretario %s: %s )) **", GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Abogado %s: %s )) **", GetPlayerNameEx(playerid), params); }
else { format(string, sizeof(string), "** (( Novato %s: %s )) **", GetPlayerNameEx(playerid), params); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
if(Info[playerid][pFMember] < 255)
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (6) %s %s: %s **", fINFO[fam][FamilyRank6], GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) %s %s: %s **", fINFO[fam][FamilyRank5], GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) %s %s: %s **", fINFO[fam][FamilyRank4], GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) %s %s: %s **", fINFO[fam][FamilyRank3], GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) %s %s: %s **", fINFO[fam][FamilyRank2], GetPlayerNameEx(playerid), params); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) %s %s: %s **", fINFO[fam][FamilyRank1], GetPlayerNameEx(playerid), params); }
else { format(string, sizeof(string), "** (0) %s %s: %s **", fINFO[fam][FamilyRank1], GetPlayerNameEx(playerid), params); }
SendNewFamilyMessage(Info[playerid][pFMember], TEAM_AZTECAS_COLOR, string);
}
return 1;
}
else SendClientMessageEx(playerid, COLOR_GRAD2, " No estбs en una facciуn!");
}
else SendClientMessageEx(playerid, COLOR_GRAD2, " Use: ! <texto>");
}
return 1;
}
if(text[0] == '!')
{
if(text[1] != '\0')
{
// Aquн tu code
return 0;
}
}
public OnPlayerText(playerid, text[])
{
if(text[0] == '!' && text[1] != '\0')
{
if(!IsPlayerConnected(playerid)) return SendClientMessageEx(playerid, COLOR_GRAD2, "No estбs conectado.");
if(nofac == 1 && Info[playerid][pLeader] < 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "El Chat de faccion esta bloqueado");
if(!isnull(text[1]))
{
new string[128];
if (Info[playerid][pLeader] > 0 || Info[playerid][pMember] > 0 || Info[playerid][pFMember] < 255)
{
new member = Info[playerid][pMember];
new fam = Info[playerid][pFMember];
if(member==1) //SAPD
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Comandante %s: %s ", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Teniente %s: %s ", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Sargento %s: %s ", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Detective %s: %s ", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Oficial %s: %s ", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Cadete %s: %s ", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Cadete %s: %s", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==2) // FBI
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Sub-Director %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Agente Especializado %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Agente Especial %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Agente Superior %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Agente %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==3) //MILITAR
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Coronel %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Mayor %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Capitan %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Sargento %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Soldado %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Cabo %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Cadete %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==4) //Medico
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Responsable tйcnico %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Supervisor %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Mйdico %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Paramйdico %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Prбctico %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Prбctico %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==5) // CNN
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director SA News %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Presentador %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Enviado Especial %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Periodista %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Redactor %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Becario %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Becario %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==6)
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Supervisor %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Ingeniero %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Mecбnico %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Trucker %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Ayudante %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Ayudante %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==7) // Gobierno
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Presidente %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Vice-Presidente %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Ministro %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Alcalde %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Secretario %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Staff %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Ministro %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==8) // Hitman
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Vice-Director %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Agente Especial %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Sicario %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Asesino %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Novato %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Novato %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==9) // S Judicial
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director G. %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Asociado %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Juez %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Fiscal %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Secretario %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Abogado %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Novato %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
if(Info[playerid][pFMember] < 255)
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (6) %s %s: %s **", fINFO[fam][FamilyRank6], GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) %s %s: %s **", fINFO[fam][FamilyRank5], GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) %s %s: %s **", fINFO[fam][FamilyRank4], GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) %s %s: %s **", fINFO[fam][FamilyRank3], GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) %s %s: %s **", fINFO[fam][FamilyRank2], GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) %s %s: %s **", fINFO[fam][FamilyRank1], GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (0) %s %s: %s **", fINFO[fam][FamilyRank1], GetPlayerNameEx(playerid), text[1]); }
SendNewFamilyMessage(Info[playerid][pFMember], TEAM_AZTECAS_COLOR, string);
}
return 1;
}
else SendClientMessageEx(playerid, COLOR_GRAD2, " No estбs en una facciуn!");
}
else SendClientMessageEx(playerid, COLOR_GRAD2, " Use: ! <texto>");
}
return 1;
}
public OnPlayerText(playerid, text[])
{
if(text[0] == '!' && text[1] != '\0')
{
if(!IsPlayerConnected(playerid)) return SendClientMessageEx(playerid, COLOR_GRAD2, "No estбs conectado.");
if(nofac == 1 && Info[playerid][pLeader] < 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "El Chat de faccion esta bloqueado");
if(!isnull(text[1]))
{
new string[128];
if (Info[playerid][pLeader] > 0 || Info[playerid][pMember] > 0 || Info[playerid][pFMember] < 255)
{
new member = Info[playerid][pMember];
new fam = Info[playerid][pFMember];
if(member==1) //SAPD
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Comandante %s: %s ", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Teniente %s: %s ", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Sargento %s: %s ", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Detective %s: %s ", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Oficial %s: %s ", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Cadete %s: %s ", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Cadete %s: %s", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==2) // FBI
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Sub-Director %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Agente Especializado %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Agente Especial %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Agente Superior %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Agente %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==3) //MILITAR
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Coronel %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Mayor %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Capitan %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Sargento %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Soldado %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Cabo %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Cadete %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==4) //Medico
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Responsable tйcnico %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Supervisor %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Mйdico %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Paramйdico %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Prбctico %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Prбctico %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==5) // CNN
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director SA News %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Presentador %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Enviado Especial %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Periodista %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Redactor %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Becario %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Becario %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==6)
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Supervisor %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Ingeniero %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Mecбnico %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Trucker %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Ayudante %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Ayudante %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==7) // Gobierno
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Presidente %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Vice-Presidente %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Ministro %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Alcalde %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Secretario %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Staff %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Ministro %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==8) // Hitman
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Vice-Director %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Agente Especial %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Sicario %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Asesino %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Novato %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Novato %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==9) // S Judicial
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director G. %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Asociado %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Juez %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Fiscal %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Secretario %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Abogado %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (( Novato %s: %s )) **", GetPlayerNameEx(playerid), text[1]); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
if(Info[playerid][pFMember] < 255)
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (6) %s %s: %s **", fINFO[fam][FamilyRank6], GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) %s %s: %s **", fINFO[fam][FamilyRank5], GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) %s %s: %s **", fINFO[fam][FamilyRank4], GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) %s %s: %s **", fINFO[fam][FamilyRank3], GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) %s %s: %s **", fINFO[fam][FamilyRank2], GetPlayerNameEx(playerid), text[1]); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) %s %s: %s **", fINFO[fam][FamilyRank1], GetPlayerNameEx(playerid), text[1]); }
else { format(string, sizeof(string), "** (0) %s %s: %s **", fINFO[fam][FamilyRank1], GetPlayerNameEx(playerid), text[1]); }
SendNewFamilyMessage(Info[playerid][pFMember], TEAM_AZTECAS_COLOR, string);
}
return 1;
}
else SendClientMessageEx(playerid, COLOR_GRAD2, " No estбs en una facciуn!");
}
else SendClientMessageEx(playerid, COLOR_GRAD2, " Use: ! <texto>");
}
return 1;
}
(49424) : error 021: symbol already defined: "S@@_OnPlayerText"
(49429) : error 001: expected token: ")", but found "["
(49429) : error 029: invalid expression, assumed zero
(49429) : error 029: invalid expression, assumed zero
(49429) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
if(strcmp(text, "!comando", false))
{
if(!IsPlayerConnected(playerid)) return SendClientMessageEx(playerid, COLOR_GRAD2, "No estбs conectado.");
if(nofac == 1 && Info[playerid][pLeader] < 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "El Chat de faccion esta bloqueado");
if(!isnull(text))
{
new string[128];
if (Info[playerid][pLeader] > 0 || Info[playerid][pMember] > 0 || Info[playerid][pFMember] < 255)
{
new member = Info[playerid][pMember];
new fam = Info[playerid][pFMember];
if(member==1) //SAPD
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Comandante %s: %s ", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Teniente %s: %s ", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Sargento %s: %s ", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Detective %s: %s ", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Oficial %s: %s ", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Cadete %s: %s ", GetPlayerNameEx(playerid), text); }
else { format(string, sizeof(string), "{0080FF}[Radio]{ffffff}Cadete %s: %s", GetPlayerNameEx(playerid), text); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==2) // FBI
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Sub-Director %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Agente Especializado %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Agente Especial %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Agente Superior %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Agente %s: %s )) **", GetPlayerNameEx(playerid), text); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==3) //MILITAR
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Coronel %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Mayor %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Capitan %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Sargento %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Soldado %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Cabo %s: %s )) **", GetPlayerNameEx(playerid), text); }
else { format(string, sizeof(string), "** (( Cadete %s: %s )) **", GetPlayerNameEx(playerid), text); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==4) //Medico
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Responsable tйcnico %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Supervisor %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Mйdico %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Paramйdico %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Prбctico %s: %s )) **", GetPlayerNameEx(playerid), text); }
else { format(string, sizeof(string), "** (( Prбctico %s: %s )) **", GetPlayerNameEx(playerid), text); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==5) // CNN
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director SA News %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Presentador %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Enviado Especial %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Periodista %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Redactor %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Becario %s: %s )) **", GetPlayerNameEx(playerid), text); }
else { format(string, sizeof(string), "** (( Becario %s: %s )) **", GetPlayerNameEx(playerid), text); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==6)
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Supervisor %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Ingeniero %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Mecбnico %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Trucker %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Ayudante %s: %s )) **", GetPlayerNameEx(playerid), text); }
else { format(string, sizeof(string), "** (( Ayudante %s: %s )) **", GetPlayerNameEx(playerid), text); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==7) // Gobierno
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Presidente %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Vice-Presidente %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Ministro %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Alcalde %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Secretario %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Staff %s: %s )) **", GetPlayerNameEx(playerid), text); }
else { format(string, sizeof(string), "** (( Ministro %s: %s )) **", GetPlayerNameEx(playerid), text); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==8) // Hitman
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Vice-Director %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Agente Especial %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Sicario %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Asesino %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Novato %s: %s )) **", GetPlayerNameEx(playerid), text); }
else { format(string, sizeof(string), "** (( Novato %s: %s )) **", GetPlayerNameEx(playerid), text); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==9) // S Judicial
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (( Director G. %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Asociado %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Juez %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Fiscal %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Secretario %s: %s )) **", GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Abogado %s: %s )) **", GetPlayerNameEx(playerid), text); }
else { format(string, sizeof(string), "** (( Novato %s: %s )) **", GetPlayerNameEx(playerid), text); }
SendFamilyMessage(Info[playerid][pMember], 0x7BDDA5AA, string);
}
if(Info[playerid][pFMember] < 255)
{
if(Info[playerid][pRank] == 6) { format(string, sizeof(string), "{04FFFF}** (6) %s %s: %s **", fINFO[fam][FamilyRank6], GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) %s %s: %s **", fINFO[fam][FamilyRank5], GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) %s %s: %s **", fINFO[fam][FamilyRank4], GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) %s %s: %s **", fINFO[fam][FamilyRank3], GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) %s %s: %s **", fINFO[fam][FamilyRank2], GetPlayerNameEx(playerid), text); }
else if(Info[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) %s %s: %s **", fINFO[fam][FamilyRank1], GetPlayerNameEx(playerid), text); }
else { format(string, sizeof(string), "** (0) %s %s: %s **", fINFO[fam][FamilyRank1], GetPlayerNameEx(playerid), text); }
SendNewFamilyMessage(Info[playerid][pFMember], TEAM_AZTECAS_COLOR, string);
}
return 1;
}
else SendClientMessageEx(playerid, COLOR_GRAD2, " No estбs en una facciуn!");
}
else SendClientMessageEx(playerid, COLOR_GRAD2, " Use: ! <texto>");
}
return 1;
}
(49424) : error 021: symbol already defined: "S@@_OnPlayerText"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
(44526) : error 001: expected token: ")", but found "["
(44526) : error 029: invalid expression, assumed zero
(44526) : error 029: invalid expression, assumed zero
(44526) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
if(!isnull(text[1]))