OnPlayerCommandPerformed question
#5

Quote:
Originally Posted by Gotham
Посмотреть сообщение
pLoggedIn is a bool make it
PHP код:
if(PlayerInfo[playerid][pLoggedIn] == false)
{
    
SendClientMessage(playeridCOLOR_RED"You have to login in order to perform commands.");
    return 
0;
}
return 
1
Same thing.
O.T.: returning 0 in OnPlayerCommandReceived causes the command to not perform. So, logically that would result in the callback not being called.
Reply


Messages In This Thread
OnPlayerCommandPerformed question - by NeXoR - 13.10.2016, 08:54
Re: OnPlayerCommandPerformed question - by Gotham - 13.10.2016, 09:14
Re: OnPlayerCommandPerformed question - by NeXoR - 13.10.2016, 09:16
Re: OnPlayerCommandPerformed question - by Gotham - 13.10.2016, 09:23
Re: OnPlayerCommandPerformed question - by AndySedeyn - 13.10.2016, 09:23

Forum Jump:


Users browsing this thread: 1 Guest(s)