07.04.2014, 16:08
Your public OnPlayerText looks okay, but give it a try: (backup your original public)
Код:
public OnPlayerText(playerid, text[]) { new string[128]; if(GetPVarInt(playerid, "InCall911") != 0) { if(PlayerInfo[playerid][pLeader] == 1) format(string, sizeof(string), "[911] %s(%d): %s", pName(playerid), playerid, text); if(PlayerInfo[playerid][pLeader] != 1) format(string, sizeof(string), "[911] %s(%d): %s", pName(playerid), playerid, text); SendSplitMessageNormal(GetPVarInt(playerid, "InCall911"), COLOR_WHITE, string); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5); printf(string); return 0; } if(Mobile[playerid] != 255) { ApplyAnimation(playerid,"PED","phone_talk",4.1,0,1 ,1,1,1); if(!IsPlayerConnected(Mobile[playerid])) { if(!IsPlayerInAnyVehicle(playerid)) { CreaInfoTDRight(playerid, "We.", 4000); } if(IsPlayerInAnyVehicle(playerid)) { SetTimerEx("timePCA", 2000, false,"i", playerid); } Mobile[playerid] = 255; InCellulare[playerid] = 0; } if(IsPlayerConnected(Mobile[playerid]) && Mobile[Mobile[playerid]] != playerid) { CreaInfoTDRight(playerid, "Il Player non ha ancora Risposto!", 5000); } if(IsPlayerConnected(Mobile[playerid]) && Mobile[Mobile[playerid]] == playerid) { new caller = Mobile[playerid]; if(PlayerInfo[playerid][pMaskuse] == 1 || PlayerInfo[playerid][pCascoUse] == 1) { format(string, sizeof(string), "Sconosciuto %d dice (cellulare): %s", VarCodeMask[playerid], text); } if(PlayerInfo[playerid][pMaskuse] == 0 && PlayerInfo[playerid][pCascoUse] == 0) { format(string, sizeof(string), "%s dice (cellulare): %s", pName(playerid), text); } ProxDetector(15.0, playerid, string, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,CO LOR_FADE5); SendSplitMessageNormal(caller, COLOR_WHITE, string); return 0; } if(PlayerInfo[playerid][pMaskuse] == 1 || PlayerInfo[playerid][pCascoUse] == 1) { format(string, sizeof(string), "Sconosciuto %d dice: %s", VarCodeMask[playerid], text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5); printf(string); return 0; } if(PlayerInfo[playerid][pCascoUse] == 0 && PlayerInfo[playerid][pMaskuse] == 0) { format(string, sizeof(string), "%s dice: %s", pName(playerid), text); ProxDetector(20.0, playerid, string, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,CO LOR_FADE5); printf(string); } return 0; }