13.03.2010, 17:28
How to Make moving gate ?
Originally Posted by NPTechStudios
Use the search feature, there are about 10 tutorials on doing that.
|
Originally Posted by † мąүқоҳ™
Quote:
|
Originally Posted by _Saif_
thats right desicion and btw he is fully new to SAMP.As you can see that this is his first post
|
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/ah3open", true)==0)
{
SendClientMessage(playerid, COLOR_BLUE, "The front gate has opened. Welcome Admin!");
MoveObject(Gate1, 829.798,-2067.799,8.735, 3.0);
return 1;
}
if(strcmp(cmdtext, "/ah3close", true)==0)
{
SendClientMessage(playerid, COLOR_BLUE, "The front gate has closed. Goodbye!");
MoveObject(Gate1,829.784,-2067.690,14.727);
return 1;
}
}
return 1;
}
new Gate1;
Gate1 = CreateObject(980,829.784,-2067.690,14.727,0.0,0.0,0.0);
MoveObject(Gate1, 829.798,-2067.799,8.735, 3.0);