15.07.2016, 11:25
make this pTutorial a bool in your PlayerData enum which will be easy to use
PHP код:
//bool:pTutorial;
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] == true)
return 0;
if (PlayerData[playerid][pMuted])
{
SendErrorMessage(playerid, "You are muted by the system.");
return 0;
}
return 1;
}