new string[128]; format(string,sizeof(string),"%s: %s",RemoveUnderScore(playerid),text); NearMessageSender(playerid, 8, string, COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2);
public OnPlayerText(playerid, text[]) { new string[128]; format(string,sizeof(string),"%s: %s",RemoveUnderScore(playerid),text); NearMessageSender(playerid, 8, string, COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2); new textv2[128]; if(IsMasked[playerid] == true) { format(textv2, sizeof (textv2), "Stranger says: %s",text); NearMessageSender(playerid, 8, textv2, COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2); return 0; } else if(IsMasked[playerid] == false) { return 1; } return 1; }
public OnPlayerText(playerid, text[])
{
new string[128];
format(string,sizeof(string),"%s: %s",RemoveUnderScore(playerid),text);
NearMessageSender(playerid, 8, string, COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2);
new textv2[128];
if(IsMasked[playerid] == true)
{
format(textv2, sizeof (textv2), "Stranger says: %s",text);
NearMessageSender(playerid, 8, textv2, COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2);
return 1;
}
else
if(IsMasked[playerid] == false)
{
return 1;
}
return 1;
}
new string[128]; if(!IsMasked[playerid] == true) { format(string,sizeof(string),"%s: %s",RemoveUnderScore(playerid),text); NearMessageSender(playerid, 8, string, COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2); return 0; }
Nevermind, fixed it myself, thanks Divergent for reminding me about the return I've forgotten to add lol, and Clad for trying to help, both +Repped, thank you !
Код:
new string[128]; if(!IsMasked[playerid] == true) { format(string,sizeof(string),"%s: %s",RemoveUnderScore(playerid),text); NearMessageSender(playerid, 8, string, COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2); return 0; } |