more gates
#1

i whanted to make 2 gates but first i maked 1 but then i wanted to add in the second 1 but that wont work pleas help me

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/open1", true) == 0)
{
MoveObject(Gate, 249.687729, 433.796722, 0.0898772, 3.00);
SendClientMessage(playerid, 0x00ff00, "Gate Down");
return 1;
}
if(strcmp(cmdtext, "/close1", true) == 0)
{
MoveObject(Gate, 249.692200, 433.822876, 57.365799, 3.00);
SendClientMessage(playerid, 0x00ff00, "Gate Up");
return 1;
}
if(strcmp(cmdtext, "/open2", true) == 0)
{
MoveObject(Gate, 18450, 277.404968, 369.266449, 3.00);
SendClientMessage(playerid, 0x00ff00, "Roof Open");
return 1;
}
if(strcmp(cmdtext, "/close2", true) == 0)
{
MoveObject(Gate, 18450, 277.404968, 369.266449, 3.00);
SendClientMessage(playerid, 0x00ff00, "Roof Closed");
}

i know open and closed are still the same
Reply


Messages In This Thread
more gates - by pleiter - 09.10.2010, 19:05
Re: more gates - by WillyP - 09.10.2010, 19:08
Re: more gates - by Backwardsman97 - 09.10.2010, 19:09
Re: more gates - by pleiter - 09.10.2010, 21:18
Re: more gates - by pleiter - 10.10.2010, 11:04

Forum Jump:


Users browsing this thread: 1 Guest(s)