Gate help
#3

This is the CMD for the gate

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/close", cmdtext, true, 10) == 0)
{
MoveObject(base,2720.10571289,-2409.60424805,12.46093750, 3.0 );
SendClientMessage(playerid,messagecolor,"The Gate is now CLOSED!");

return 1;
}
if (strcmp("/open", cmdtext, true, 10) == 0)
{
MoveObject(base,2720.0986328125,-2401.1477050781,12.4609375, 3.0 );
SendClientMessage(playerid,messagecolor,"The Gate is now OPEN!");

return 1;
}
Reply


Messages In This Thread
Gate help - by Bob_Raw - 28.03.2011, 17:51
Re: Gate help - by omer5198 - 28.03.2011, 17:53
Re: Gate help - by Bob_Raw - 28.03.2011, 17:54
Re: Gate help - by omer5198 - 28.03.2011, 18:04
Re: Gate help - by mprofitt - 28.03.2011, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)