Sziasztok! Bocsi hogy így irom le de kezdõ vagyok :D!
Szkript:
#include <a_samp>
#if defined FILTERSCRIPT
new rgckapu;
new rgckapu2;
public OnFilterScriptInit()
{
rgckapu = CreateObject(974, 1945.6026611328, 2218.96484375, 12.598052978516, 0, 0, 90);
rgckapu2 = CreateObject(974, 1945.6346435547, 2212.4208984375, 12.598052978516, 0, 0, 90);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(\"/rgcbazis-nyit\", cmdtext, true) )
{
MoveObject(rgckapu2, 1945.5947265625, 2218.9372558594, 12.598052978516, 2.0);
return 1;
}
if(!strcmp(\"/rgcbazis-zar\", cmdtext, true) )
{
MoveObject(rgckapu2, 1945.6346435547, 2212.4208984375, 12.598052978516, 2.0);
return 1;
}
#endif
KÖSZI A SEGÍTSÉGET!
Kicsit átírtam.... így 100% hogy müködnie kell
#include <a_samp>
new rgckapu[2];
public OnFilterScriptInit()
{
rgckapu[0] = CreateObject(974, 1945.6026611328, 2218.96484375, 12.598052978516, 0, 0, 90);
rgckapu[1] = CreateObject(974, 1945.6346435547, 2212.4208984375, 12.598052978516, 0, 0, 90);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(\"/rgcbazis-nyit\", cmdtext, true) )
{
MoveObject(rgckapu[0], 1945.5947265625, 2218.9372558594, 12.598052978516, 2.0);
return 1;
}
if(!strcmp(\"/rgcbazis-zar\", cmdtext, true) )
{
MoveObject(rgckapu[0], 1945.6346435547, 2212.4208984375, 12.598052978516, 2.0);
return 1;
}
return 0;
}