13.10.2016, 08:54
Hey, if for example, under OnPlayerCommandReceived, I do something like this:
Would the "return 0" call the function OnPlayerCommandPerformed ?
PHP код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(!PlayerInfo[playerid][pLoggedIn])
{
SendClientMessage(playerid, COLOR_RED, "You have to login in order to perform commands.");
return 0;
}
return 1;
}