Help needed with Multiple moveing objects by command
#1

It compiles perfactly but apon testing the objects do not move, Any help welcome
Код:
public OnPlayerCommandText(playerid, cmdtext[])

     	if(strcmp(cmd, "/mdefon", true) == 0) { // Command
		MoveObject(MUF_Tower1, 1035.043, 1124.109, 10.076, 2.0); // Move object up
		MoveObject(MUF_Tower2, 1053.150, 1138.733, 10.076, 2.0); // Move object up
		MoveObject(MUF_Stair1, 1024.954, 1112.197, 12.594, 2.0);
		MoveObject(MUF_Stair2, 1020.921, 1103.657, 17.541, 2.0);
		MoveObject(MUF_Stair3, 1018.094, 1097.522, 22.220, 2.0);
		SendClientMessage(playerid, COLOR_RED, "The Defences are ON"); // Messege to tell it worked
		return 1;
	}
	if(strcmp(cmd, "/mdefoff", true) == 0) { // Command
		MoveObject(MUF_Tower1, 1035.043, 1124.109, -30.076, 2.0); // Move object down
		MoveObject(MUF_Tower2, 1053.150, 1138.733, -30.076, 2.0); // Move object down
		MoveObject(MUF_Stair1, 1024.954, 1112.197, -30.594, 2.0);
		MoveObject(MUF_Stair2, 1020.921, 1103.657, -30.541, 2.0);
		MoveObject(MUF_Stair3, 1018.094, 1097.522, -30.220, 2.0);
		SendClientMessage(playerid, COLOR_GREEN, "The Defences are OFF"); //Messege to tell it worked
Reply


Messages In This Thread
Help needed with Multiple moveing objects by command - by 3d0v - 14.08.2009, 22:05
Re: Help needed with Multiple moveing objects by command - by paytas - 14.08.2009, 22:10
Re: Help needed with Multiple moveing objects by command - by ilikepie2221 - 14.08.2009, 23:43

Forum Jump:


Users browsing this thread: 1 Guest(s)