System earthquake
#1

Want to create an earthquake. The effect of the earthquake I want to give the level of drunk. I mean when the screen moves. How can I give a speed that effect?
Reply
#2

You can't speed it more than it is already. Real earthquakes effects are only induced by explosions and high speed trains moving nearby.

You could script a camera shake with the camera functions though, but it would be a pretty advanced script (Also a great idea)
Reply
#3

Could you give me the command that can do this? Or advise what to use?
Reply
#4

https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt

I will try scripting this, it seems like a fun thing to do.
Reply
#5

Quote:
Originally Posted by CuervO
Посмотреть сообщение
You can't speed it more than it is already. Real earthquakes effects are only induced by explosions and high speed trains moving nearby.

You could script a camera shake with the camera functions though, but it would be a pretty advanced script (Also a great idea)
I have not tried it myself but you could possibly use the first person shooting method but offset the attachment.

https://sampforum.blast.hk/showthread.php?tid=333330
Reply
#6

pawn Код:
YCMD:eq(playerid, params[], help)
{
    #pragma unused help
    #pragma unused params
    if(GetPVarInt(-1, "EarthQuake") == 1337)
    {
        foreach(Player, i)
        {
            SetPlayerDrunkLevel(i, 49998);
        }
        print("EarthQuake off");
        SetPVarInt(-1, "EarthQuake", 1312);
    }
    else
    if(GetPVarInt(-1, "EarthQuake") == 1312)
    {
        foreach(Player, i)
        {
            SetPlayerDrunkLevel(i, 0);
        }
        print("EarthQuake off");
        SetPVarInt(-1, "EarthQuake", 1337);
    }
    return 1;
}
Missunderstood, sorry.
Reply
#7

Quote:
Originally Posted by erminpr0
Посмотреть сообщение
pawn Код:
YCMD:eq(playerid, params[], help)
{
    if(GetPVarInt(-1, "EarthQuake") == 1337)
    {
        foreach(Player, i)
        {
            SetPlayerDrunkLevel(i, 49998);
        }
        print("EarthQuake off");
        SetPVarInt(-1, "EarthQuake", 1312);
    }
    else
    if(GetPVarInt(-1, "EarthQuake") == 1312)
    {
        foreach(Player, i)
        {
            SetPlayerDrunkLevel(i, 0);
        }
        print("EarthQuake off");
        SetPVarInt(-1, "EarthQuake", 1337);
    }
    return 1;
}
Missunderstood, sorry.
If you don't use params, use strcmp, not YCMD or ZCMD.
pawn Код:
if(strcmp("/eq", cmdtext, true)==0)
{
    if(GetPVarInt(-1, "EarthQuake") == 1337)
    {
        foreach(Player, i)
        {
            SetPlayerDrunkLevel(i, 49998);
        }
        print("EarthQuake off");
        SetPVarInt(-1, "EarthQuake", 1312);
    }
    else
    if(GetPVarInt(-1, "EarthQuake") == 1312)
    {
        foreach(Player, i)
        {
            SetPlayerDrunkLevel(i, 0);
        }
        print("EarthQuake off");
        SetPVarInt(-1, "EarthQuake", 1337);
    }
    return 1;
}
Reply
#8

Thanx for help all ! Topic Close Please !
Reply
#9

Someone have earthquakes system? please give me ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)