Need /block Command
#1

Hello People

I need a /block Command. This Block command is for every user to ignore other User - I don't know how i do it.. Grml

I think its a little bit like this ( Its Made by me ):
Код:
	if(strcmp(cmd, "/block", true) == 0)
	{
		 if(IsPlayerConnected(playerid))
		 {
			 if (!Block[playerid])
			 {
				 Block[playerid] = 1;
				 SendClientMessage(playerid, COLOR_GRAD2, "  Spieler wurde geblockt !");
			 }
			 else if (Block[playerid])
			 {
				 Block[playerid] = 0;
				 SendClientMessage(playerid, COLOR_GRAD2, "  Spieler wurde entblockt !");
			 }
		 }
		 else
		 {
			 SendClientMessage(playerid, COLOR_GREY, "  Du bist kein Admin / Premium Account User !");
			 return 1;
		 }
	 }
	 return 1;
	}
But i think its very wrong
Reply


Messages In This Thread
Need /block Command - by micki501 - 07.02.2009, 18:28
Re: Need /block Command - by ICECOLDKILLAK8 - 07.02.2009, 18:30
Re: Need /block Command - by pspleo - 07.02.2009, 18:31
Re: Need /block Command - by micki501 - 07.02.2009, 18:33
Re: Need /block Command - by micki501 - 07.02.2009, 18:48
Re: Need /block Command - by micki501 - 08.02.2009, 09:29
Re: Need /block Command - by pspleo - 08.02.2009, 10:18

Forum Jump:


Users browsing this thread: 1 Guest(s)