SA-MP Forums Archive
Gate Help ??? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gate Help ??? (/showthread.php?tid=353853)



Gate Help ??? - zT KiNgKoNg - 24.06.2012

Quote:

#include <a_samp>
#include <streamer>
new hanger1;
new hanger2;
public OnFilterScriptInit()
{
hanger1 = CreateObject(16775, 286.50, 1950.23, 19.09, 0.00, 0.00, 90.00);
hanger2 = CreateObject(16775, 286.50, 1963.25, 18.96, 0.00, 0.00, 90.00);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/gateopen1", true))
{
MoveObject(hanger1,286.52, 1950.23, 12.46, 0.00, 0.00, 90.00);
MoveObject(hanger2,286.50, 1963.25, 12.65, 0.00, 0.00, 90.00);
return 1;
}
if(!strcmp(cmdtext, "/test1", true))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 290.71, 1954.90, 17.02);
return 1;
}
if(!strcmp(cmdtext, "/gateclose1", true))
{
MoveObject(hanger1,286.50, 1950.23, 19.09, 0.00, 0.00, 90.00);
MoveObject(hanger2,286.50, 1963.25, 18.96, 0.00, 0.00, 90.00);
return 1;
}
return 0;
}

This script is being compiled correctly no errors but when im testing it will not open can you tell me why


Re: Gate Help ??? - Grand_Micha - 24.06.2012

https://sampforum.blast.hk/showthread.php?tid=133656

Follow this tutorial, kid.


Re: Gate Help ??? - zT KiNgKoNg - 24.06.2012

Quote:
Originally Posted by Grand_Micha
Посмотреть сообщение
Thanks for the help but its a filter script will it still work
i had a missive brake since i started with Pawno again because i rescripted Ravens Roleplay so i dont know whats rong with it thanks any way i rep+ you


Re: Gate Help ??? - Grand_Micha - 24.06.2012

You have to replace OnGameModeInit with OnFilterScriptInit if you are writing a filterscript.