I doesn't get help here!!! (need help with command explain)
#2

Try This :


on top
Код:
new door, DoorOpened;
OnGameModeInit
Код:
door = createobject(980,1534.5843505859, -1451.3070068359,15.159576416016);
DoorOpened = 0;
OnPlayerCommandText
Код:
if(strcmp("/open", cmdtext, true, 10) == 0)
{
if(DoorOpened != 0) return 0;
MoveObject(door,1534.5843505859, -1451.3070068359,10.159576416016,1.00);
SendClientMessage(playerid, 0xFF000000, "The Door Is Opened");
DoorOpened = 1;
}

if(strcmp("/close", cmdtext, true, 10) == 0)
{
if(DoorOpened == 0) return 0;
MoveObject(door,1534.5843505859, -1451.3070068359,15.159576416016,1.00);
SendClientMessage(playerid, 0xFF000000, "The Door Is Closed");
DoorOpened = 0;
}
Reply


Messages In This Thread
I doesn't get help here!!! (need help with command explain) - by igor_andrusenko - 07.08.2011, 12:48
Re: I doesn't get help here!!! (need help with command explain) - by HuSs3n - 07.08.2011, 13:05
Re: I doesn't get help here!!! (need help with command explain) - by [bs]_lancer - 07.08.2011, 13:24

Forum Jump:


Users browsing this thread: 1 Guest(s)