[HELP] Object don't move. why not?
#1

Hello,

I have make a filterscript with a gate next to the lspd.
But the object don't move..
Is something wrong?

Quote:

#include <a_samp>
#define COLOR_GREEN 0x00FF00AA

new Poort;

main()
{
print("n00000000000000000000000000000000");
print("LSPD Gate");
print("00000000000000000000000000000000n");
}


public OnGameModeInit()
{
SetGameModeText("TutorialGameMode");
AddPlayerClass(93, 2494.4888, -1675.5619, 13.3359, 55.9011,0,0,0,0,0,0);
//CreateObject(id, X, Y, Z, X-rotatie, Y-rotatie, Z-rotatie);
Poort = CreateObject(969, 1547.073730, -1631.926880, 12.549690, 0.0000, 0.0000, 90.0000);
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,-812.0018,-1949.3617,9.3004); // Waar de speler te zetten voor het spawn-menu
SetPlayerCameraPos(playerid,-816.4528,-1945.0082,9.0269); // Camera voor het spawn-menu
SetPlayerCameraLookAt(playerid,-812.0018,-1949.3617,9.3004); // Waar moet de camera naar toe kijken?
return 1;
}


public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/open", cmdtext, true, 10) == 0) //Invoer van het commando
{
MoveObject(Poort, 1535.0, -1622.7, 12.5, 0);
SendClientMessage(playerid, COLOR_GREEN, "De poort is nu geopend.");
return 1;
}

if (strcmp("/close", cmdtext, true, 10) == 0)
{
MoveObject(Poort, 1547.0, -1631.9, 12.5, 0);
SendClientMessage(playerid, COLOR_GREEN, "De poort is nu gesloten.");
return 1;
}

return 0;
}

Reply


Messages In This Thread
[HELP] Object don't move. why not? - by Battlaman - 05.03.2009, 19:02
Re: [HELP] Object don't move. why not? - by [RP]Rav - 05.03.2009, 19:04
Re: [HELP] Object don't move. why not? - by Nubotron - 05.03.2009, 19:06
Re: [HELP] Object don't move. why not? - by Battlaman - 05.03.2009, 19:07
Re: [HELP] Object don't move. why not? - by Battlaman - 05.03.2009, 19:08
Re: [HELP] Object don't move. why not? - by Nubotron - 05.03.2009, 19:08
Re: [HELP] Object don't move. why not? - by Battlaman - 05.03.2009, 19:10
Re: [HELP] Object don't move. why not? - by [RP]Rav - 05.03.2009, 19:11
Re: [HELP] Object don't move. why not? - by Battlaman - 05.03.2009, 19:19
Re: [HELP] Object don't move. why not? - by Hot - 05.03.2009, 19:24

Forum Jump:


Users browsing this thread: 1 Guest(s)