Help, Moving object
#5

Quote:
Originally Posted by Crashty
Посмотреть сообщение
CreateObject(980, 2091.7006835938, -1753.1389160156, 15.178255081177, 0, 0, 0);

This line is already there
do this;
pawn Код:
//at the list of all you're new's (which i assume you have?)
new test;
pawn Код:
test = CreateObject(980, 2091.7006835938, -1753.1389160156, 15.178255081177, 0, 0, 0);
//at OnGameModeInIt or if its a FS OnFilterScriptInIt
then:

pawn Код:
if(strcmp(cmd,"/test",true)==0)
    {
        if(gTeam[playerid] == 1)
        {
            if(IsPlayerInRangeOfPoint(playerid,30,2091.7006835938, -1753.1389160156, 15.178255081177))
            {
                MoveObject(test,2091.7006835938, -1753.1389160156, 30.178255081177,5);
            }
            else
            {
                SendClientMessage(playerid,RED2,"You are too far!");
            }
        }
       
        else
        {
            SendClientMessage(playerid,GREEN,"Your  can't do that in your team!");
        }
        return 1;
    }
If you want to know what changed i removed this.
pawn Код:
new test;
        test = CreateObject(980, 2091.7006835938, -1753.1389160156, 15.178255081177, 0, 0, 0);
Reply


Messages In This Thread
Help, Moving object - by Crashty - 02.10.2010, 11:51
Re: Help, Moving object - by iRana - 02.10.2010, 13:10
Re: Help, Moving object - by Crashty - 02.10.2010, 13:18
Re: Help, Moving object - by VIRUXE - 02.10.2010, 13:23
Re: Help, Moving object - by Bessensap - 02.10.2010, 14:44
Re: Help, Moving object - by Crashty - 02.10.2010, 14:59

Forum Jump:


Users browsing this thread: 2 Guest(s)