How to make moving gate
#8

an example by my gm
pawn Код:
new pdgate1;
pawn Код:
public GateClose(playerid)
{
      MoveDynamicObject(pdgate1,-1571.80, 661.16, 6.08, 0.97);
      PlayerPlaySound(playerid, 1153, -1571.80, 661.16, 6.08);
      return 1;
}
pawn Код:
pdgate1 = CreateDynamicObject(971, -1571.80, 661.16, 6.08, 0.00, 360.00, 90.00, -1, 0, -1, 500);
pawn Код:
if(!strcmp(cmdtext, "/cancello", true)) // From LA RP
{
    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
    {
        if (PlayerToPoint(15, playerid,-1571.80, 661.16, 6.08))
        {
            MoveDynamicObject(pdgate1,-1571.80, 654.16, 6.08, 0.8);
            SetTimer("GateClose", 12000, 0);
            SendClientMessage(playerid, COLOR_BLUE,"Il cancello и aperto e si chiuderа fra 7 secondi.");
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* %s prende il telecomando e apre il cancello.", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            PlayerPlaySound(playerid, 1153, -1571.80, 661.16, 6.08);
        }
Reply


Messages In This Thread
How to make moving gate - by doreto - 03.09.2010, 06:17
Re: How to make moving gate - by [UG]Scripter - 03.09.2010, 06:20
Re: How to make moving gate - by Agent Smith - 03.09.2010, 06:33
Re: How to make moving gate - by doreto - 03.09.2010, 06:37
Re: How to make moving gate - by doreto - 03.09.2010, 06:39
Re: How to make moving gate - by Thebest96 - 03.09.2010, 08:16
Re: How to make moving gate - by Voldemort - 03.09.2010, 08:29
Re: How to make moving gate - by Mr.Obscure - 03.09.2010, 08:36
Re: How to make moving gate - by [UG]Scripter - 03.09.2010, 09:01
Re: How to make moving gate - by doreto - 03.09.2010, 12:02

Forum Jump:


Users browsing this thread: 1 Guest(s)