God Command
#8

Ok i made it like this:

CMD:god(playerid, params[])
{
if(GodMode[playerid] == 0)
{
GodMode[playerid] = 1;
SendClientMessage(playerid, -1, "You're now on duty");
SetPlayerArmedWeapon(playerid, 0);
ResetPlayerWeapons(playerid);
}
else
{
if(GodMode[playerid] == 1)
{
GodMode[playerid] = 0;
SendClientMessage(playerid,-1,"You're now off duty");
}
return 1;
}

And i think that should work: I added ResetPlayerWeapons(playerid);
And this should reset weapons if he have when it launch the command.

But i have other problem, how do i make when player gets weapon it removes it again? When its god mode.
Reply


Messages In This Thread
God Command - by Lixyde - 08.03.2018, 17:53
Re: God Command - by ivndosos - 08.03.2018, 17:58
Re: God Command - by RxErT - 08.03.2018, 18:06
Re: God Command - by Lixyde - 08.03.2018, 18:44
Re: God Command - by KaRToNiToS - 08.03.2018, 18:46
Re: God Command - by Lixyde - 08.03.2018, 18:50
Re: God Command - by KaRToNiToS - 08.03.2018, 18:52
Re: God Command - by Lixyde - 09.03.2018, 16:43
Re: God Command - by AdamsLT - 09.03.2018, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)