[Welp] How to make a /command when u type it again disable/remove something.
#1

Ok so i managed to work out how to attach a object to a players head etc. but i want to know how can i make it so if i type the command again it would remove it.

Код:
	if(strcmp(cmd, "/tv", true) == 0) {
		SendPlayerFormattedText(playerid,"You Now Are A TV Head!!.",0);
		new tv;
  		tv = 1518;
		SetPlayerHoldingObject(playerid, tv, 2, 0000.23, 0000.0, 0000.0, 0000.0, 0085.0, 0180.0);
    return 1;
	}
Reply


Messages In This Thread
[Welp] How to make a /command when u type it again disable/remove something. - by FluffyPawZ - 11.09.2010, 00:24
Re: [Welp] How to make a /command when u type it again disable/remove something. - by Dime - 11.09.2010, 03:08
Re: [Welp] How to make a /command when u type it again disable/remove something. - by FluffyPawZ - 11.09.2010, 10:53

Forum Jump:


Users browsing this thread: 1 Guest(s)