Hi. Seems that the OnPlayerText doesn't recognize return 0, here's what I used:
if(cmdtext[0] == ';')
{
for(new i = 0; i < 41; i++)
{
if(IsPlayerConnected(i) && GetPlayerTeam(i) == GetPlayerTeam(playerid))
{
newvar = FindPlayerIDFromString(tmp);
format(tmp,sizeof(tmp),"[TEAM] %s: %s",gPlayers[newvar],cmdtext[1]);
SendClientMessage(i,COLOR_GREEN,tmp);
}
}
return 0;
}
Outputs (Wrong):
Ettans: ;message
[TEAM] Ettans: message
Whereas it should output:
[TEAM] Ettans: message
Any idea what's wrong or is it VC-MP bug?