02.01.2018, 08:47
This
Can be optimized to this
PHP код:
public OnPlayerText(playerid, text[])
{
if(!chattoggled)
{
return 0;
}
else
{
return 0;
}
if(chattoggle[playerid])
{
return 0;
}
else
{
return 1;
}
}
PHP код:
public OnPlayerText(playerid, text[])
{
if(!chattoggled || chattoggle[playerid])
return 0;
return 1;
}