26.04.2014, 16:05
Hi all friends forum samp, well I have a problem with OnPlayerText functions, the problem is that to get into my server and write any word says that no one on the phone and see written twice, I hope you can help me thanks from now, I leave some images and script ..

this is the function OnPlayerText completed..
Thanks beforehand, and I hope they can help me ..
PD: Sorry for the spanish in script or in the server >.<

pawn Код:
public OnPlayerText(playerid, text[])
{
new string[100];
format(string, sizeof(string), "%s Say: %s",NombreJugador(playerid), text);
if(Mobile[playerid] != INVALID_PLAYER_ID)
{
format(string, sizeof(string), "{B9FF93}[Telephone] Testing{FFFFFF}: %s", text);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
// -============================ · ============================- //
ProxDetector(10.0, playerid, string,Hablar,Hablar2,Hablar3,Hablar4,Hablar5);
if(IsPlayerConnected(Mobile[playerid]))
{
if(Mobile[Mobile[playerid]] == playerid)
{
if(InfoJugador[Mobile[playerid]][pSpeaker] != 0)
{
format(string, sizeof(string), "[Speaker] %s Say: %s", SacarNombre(playerid), text);
ProxDetector(20.0, Mobile[playerid], string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else
{
SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_YELLOW,"No one on the phone!");
}
return 0;
}
Thanks beforehand, and I hope they can help me ..
PD: Sorry for the spanish in script or in the server >.<