23.07.2009, 19:27
Hi iґm from german and i have one problem , the Script what i use , dosenґt work with script idґs at user file .
My Problem is to make Object (gates) move to Gate Owner , so than can help me somebody so than can take
the player name to this files .
#include <a_samp>
/*#include <dudb>*/
#include <TSS>
#pragma tabsize 0
#define COLOR_YELLOW 0xFFFF00AA
#define FILTERSCRIPT
#if defined FILTERSCRIPT
new BurnPH_gate;
/*new wc2_gate;*/
public OnFilterScriptInit()
{
//Burn Pfanhaus
CreateObject(2774, -496.408997, -562.484009, 19.203974, 0.0000, 178.7629, 0.0000);
CreateObject(2774, -481.882904, -562.346008, 19.173000, 0.0000, 180.4818, 0.0000);
CreateObject(2774, -483.568176, -562.354126, 19.187218, 0.0000, 180.4818, 0.0000);
CreateObject(2774, -494.753662, -562.466980, 19.239964, 0.0000, 178.7629, 0.0000);
BurnPH_gate = CreateObject(980, -489.138458, -562.767883, 27.261347, 0.0000, 0.0000, 180.0000);
/*wc2_gate = CreateObject(3475, -1940.231445, 274.711761, 40.848160, 0.0000, 0.0000, 0.0000);*/
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
for(new i=0;i < MAX_PLAYERS; i++)
{
DestroyObject(i);
}
for(new i=0;i < MAX_OVERALL_OBJECTS; i++)
{
DestroyStreamObject(i);
}
return 1;
}
#else
{
return 1;
}
#else
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/1", true) == 0){
MoveObject(BurnPH_gate,-489.154602, -562.762573, 20.368092,4);
SendClientMessage(playerid, COLOR_YELLOW,"Pfand Gelдnde auf!");
return 1;
}
if (strcmp(cmdtext, "/2", true) == 0){
MoveObject(BurnPH_gate,-489.138458, -562.767883, 27.261347,4);
SendClientMessage(playerid, COLOR_YELLOW,"Pfand Gelдnde zu!");
return 1;
}
return 0;
}
My Problem is to make Object (gates) move to Gate Owner , so than can help me somebody so than can take
the player name to this files .
#include <a_samp>
/*#include <dudb>*/
#include <TSS>
#pragma tabsize 0
#define COLOR_YELLOW 0xFFFF00AA
#define FILTERSCRIPT
#if defined FILTERSCRIPT
new BurnPH_gate;
/*new wc2_gate;*/
public OnFilterScriptInit()
{
//Burn Pfanhaus
CreateObject(2774, -496.408997, -562.484009, 19.203974, 0.0000, 178.7629, 0.0000);
CreateObject(2774, -481.882904, -562.346008, 19.173000, 0.0000, 180.4818, 0.0000);
CreateObject(2774, -483.568176, -562.354126, 19.187218, 0.0000, 180.4818, 0.0000);
CreateObject(2774, -494.753662, -562.466980, 19.239964, 0.0000, 178.7629, 0.0000);
BurnPH_gate = CreateObject(980, -489.138458, -562.767883, 27.261347, 0.0000, 0.0000, 180.0000);
/*wc2_gate = CreateObject(3475, -1940.231445, 274.711761, 40.848160, 0.0000, 0.0000, 0.0000);*/
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
for(new i=0;i < MAX_PLAYERS; i++)
{
DestroyObject(i);
}
for(new i=0;i < MAX_OVERALL_OBJECTS; i++)
{
DestroyStreamObject(i);
}
return 1;
}
#else
{
return 1;
}
#else
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/1", true) == 0){
MoveObject(BurnPH_gate,-489.154602, -562.762573, 20.368092,4);
SendClientMessage(playerid, COLOR_YELLOW,"Pfand Gelдnde auf!");
return 1;
}
if (strcmp(cmdtext, "/2", true) == 0){
MoveObject(BurnPH_gate,-489.138458, -562.767883, 27.261347,4);
SendClientMessage(playerid, COLOR_YELLOW,"Pfand Gelдnde zu!");
return 1;
}
return 0;
}