Gate for 1 player
#6

it doesnt work!
its says: SERVER:Unknown command.

these are my commands
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/kill", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid,0); //KillCommand
		SetPlayerScore(playerid,GetPlayerScore(playerid) -1);
		SetPlayerWorldBounds(playerid, 945.9079, 326.9805, 1132.754, 688.9946);
		GameTextForPlayer(playerid, "You Comited Suicide", 1000, 1);
		return 1;
	}
	
	if (strcmp("/help", cmdtext, true, 10) == 0)
	{
	    SendClientMessage(playerid,COLOR_GREEN,".::.Rules.::.");
	    SendClientMessage(playerid,COLOR_YELLOW,"1. No cheating.");
	    SendClientMessage(playerid,COLOR_YELLOW,"2. Don't TeamKill.");
	    SendClientMessage(playerid,COLOR_YELLOW,"3. Don't go outside the DM zone.");
	    SendClientMessage(playerid,COLOR_GREEN,".::.Commands.::.");
	    SendClientMessage(playerid,COLOR_YELLOW,"/kill");
		return 1;
	}
	
	if (strcmp("/open", cmdtext, true, 10) == 0)
	{
  		new PlayerName[MAX_PLAYER_NAME];
  		GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
  		if(!strcmp("Duckie",PlayerName,true)) return 0;
    	        MoveObject(gate,443.53085327,947.01824951,-2.5,1.5);
    	        SendClientMessage(playerid, 0xFF9900AA, "Gate Open");
   		return 1;
	}

	if (strcmp("/close", cmdtext, true, 10) == 0)
	{
		new PlayerName[MAX_PLAYER_NAME];
  		GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
   		if(!strcmp("Duckie",PlayerName,true)) return 0;
		MoveObject(gate,443.53085327,947.01824951,4.27847576,1.5);
		SendClientMessage(playerid, 0xFF9900AA, "Gate Closed");
		return 1;
	}

	return 0;
}
Reply


Messages In This Thread
Gate for 1 player - by duckie - 09.03.2011, 14:05
Re: Gate for 1 player - by =WoR=Mitch - 09.03.2011, 14:09
Re: Gate for 1 player - by bhaveshnande - 09.03.2011, 14:11
Re: Gate for 1 player - by HyperZ - 09.03.2011, 14:12
Re: Gate for 1 player - by =WoR=Mitch - 09.03.2011, 14:21
Re: Gate for 1 player - by duckie - 09.03.2011, 14:43
Re: Gate for 1 player - by Davz*|*Criss - 09.03.2011, 14:51
Re: Gate for 1 player - by duckie - 09.03.2011, 14:57
Re: Gate for 1 player - by Davz*|*Criss - 09.03.2011, 14:58

Forum Jump:


Users browsing this thread: 1 Guest(s)