15.07.2016, 13:10
here you go if i understood it right this time
PHP код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if (!SQL_IsLogged(playerid) || (PlayerData[playerid][pTutorialStage] > 0 || PlayerData[playerid][pKilled] > 0 || PlayerData[playerid][pHospital] != -1))
return 0;
if (PlayerData[playerid][pTutorial] > 0)
{
if(strfind(cmdtext, "/skiptutorial", true)) return 1;
else return 0;
}
if (PlayerData[playerid][pMuted] && strfind(cmdtext, "/unmute", true))
{
SendErrorMessage(playerid, "You are muted by the system.");
return 0;
}
return 1;
}