[Include] [INC] Smooth Object Rotating
#17

I had a working test script but went gone

Anyway I found an old copy of it which isn't working :

pawn Код:
#include <a_samp>
#include <SRO>

new exist, obj, x, y, z;

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Soft Object Rotation, Test");
    print("--------------------------------------\n");
    exist = 0;
    return 1;
}

public OnFilterScriptExit()
{
    exist = 0;
    return 1;
}

public OnObjectRotated(objectid)
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/make", cmdtext, true, 5) == 0)
    {
        if(exist == 0){
            GetPlayerPos(playerid, x, y, z);
            obj = CreateObject(987,x-2,y+2,z+3,0,0,0);
            exist = 1;
        }else{
            SendClientMessage(playerid, 0xFF4411FF, "You must delete the test thing to create a new one!");
        }
        return 1;
    }
    if(strcmp("/del", cmdtext, true, 4) == 0)
    {
        if(exist == 1){
            DestroyObject(obj);
            exist = 0;
        }else{
            SendClientMessage(playerid, 0xFF4411FF, "There is nothing to delete!");
        }
        return 1;
    }
    if(strcmp("/rotx", cmdtext, true, 5) == 0)
    {
        if(exist == 1){
            RotateObject(obj, 20, 0, 0, 2.0);
        }else{
            SendClientMessage(playerid, 0xFF4411FF, "There is nothing to rotate!");
        }
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[INC] Smooth Object Rotating - by [nl]daplayer - 02.05.2009, 12:39
Re: [INC] Smooth Object Rotating - by SpiderPork - 02.05.2009, 13:09
Re: [INC] Smooth Object Rotating - by [nl]daplayer - 02.05.2009, 13:13
Re: [INC] Smooth Object Rotating - by miokie - 02.05.2009, 14:53
Re: [INC] Smooth Object Rotating - by rensfromrpas - 04.05.2009, 09:27
Re: [INC] Smooth Object Rotating - by pspleo - 04.05.2009, 10:09
Re: [INC] Smooth Object Rotating - by Weirdosport - 04.05.2009, 15:58
Re: [INC] Smooth Object Rotating - by [nl]daplayer - 04.05.2009, 17:03
Re: [INC] Smooth Object Rotating - by Weirdosport - 04.05.2009, 17:20
Re: [INC] Smooth Object Rotating - by [NM]XBOX_360 - 04.05.2009, 17:24
Re: [INC] Smooth Object Rotating - by [nl]daplayer - 04.05.2009, 18:28
Re: [INC] Smooth Object Rotating - by Weirdosport - 04.05.2009, 19:18
Re: [INC] Smooth Object Rotating - by [nl]daplayer - 04.05.2009, 19:45
Re: [INC] Smooth Object Rotating - by Weirdosport - 04.05.2009, 20:03
Re: [INC] Smooth Object Rotating - by NeRoSiS - 21.06.2009, 17:02
Re: [INC] Smooth Object Rotating - by G_ROW_Chez - 22.06.2009, 18:55
Re: [INC] Smooth Object Rotating - by Patrik356b - 18.07.2009, 17:38
Re: [INC] Smooth Object Rotating - by wups - 05.09.2010, 18:52
Re: [INC] Smooth Object Rotating - by Crayder - 28.10.2013, 00:46

Forum Jump:


Users browsing this thread: 2 Guest(s)