Gate Help ???
#1

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
Reply
#2

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

Follow this tutorial, kid.
Reply
#3

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
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)