Do something if object arrives at destination
#3

Quote:
Originally Posted by ScRaT
Посмотреть сообщение
pawn Код:
public OnObjectMoved(objectid)
{

    return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
    return 1;
}
https://sampwiki.blast.hk/wiki/OnObjectMoved
Yeah but i have it like this
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/firework", cmdtext, true, 10) == 0)
	{
	    new blabla;
        new Float:pX, Float:pY, Float:pZ;
  		GetPlayerPos(playerid, pX, pY, pZ);
  		blabla = CreateObject(2918, pX, pY, pZ, 0.0, 0.0, 100.0);
  		MoveObject(firework, pX, pY, pZ + 20, 8.00);
  		SendClientMessage(playerid, -1, "{3EFAF7}k.");
  		return 1;
	}
	return 0;
}

public OnObjectMoved(objectid)
{
    // Won't work since its a private variable
    return 1;
}
Reply


Messages In This Thread
Do something if object arrives at destination - by Sellize - 01.06.2013, 08:57
Re: Do something if object arrives at destination - by ScRaT - 01.06.2013, 08:59
Re: Do something if object arrives at destination - by Sellize - 01.06.2013, 09:02
Re: Do something if object arrives at destination - by Konstantinos - 01.06.2013, 09:11

Forum Jump:


Users browsing this thread: 1 Guest(s)