godmode in /whois
#8

Just check if PlayerAcc[playerid][God] returns 1 or 0. If returns 1, just make it display on or off. (The check must be done in the /whois command. I will give a example, but im not sure it will happen. It will still give you a base to work on.

CMD:whois(playerid, params[])
{

if(PlayerAcc[playerid][God] == 1)
{
SendClientMessage(playerid, blabla, "godmode on");
}
else
{
SendClientMessage(playerid, blabla, "godmode off");
}
return 1;
}

and so, with some basics you can integrate this into your code.
Reply


Messages In This Thread
godmode in /whois - by suni - 09.07.2015, 22:28
Re: godmode in /whois - by STONEGOLD - 09.07.2015, 22:36
Re: godmode in /whois - by suni - 09.07.2015, 22:44
Re: godmode in /whois - by suni - 09.07.2015, 23:11
Re: godmode in /whois - by suni - 10.07.2015, 19:41
Re: godmode in /whois - by Threshold - 10.07.2015, 20:30
Re: godmode in /whois - by suni - 10.08.2015, 17:51
Re: godmode in /whois - by [LvZ]Free - 10.08.2015, 18:08

Forum Jump:


Users browsing this thread: 3 Guest(s)