I need help to make gates with owner
#1

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

Well this isn't your problem, but it's a bit silly:

pawn Код:
for(new i=0;i < MAX_PLAYERS; i++)
    {
    DestroyObject(i);
    }
Why MAX_PLAYERS?
Reply
#3

this is a part from a older object fs , its not in use for something
Reply
#4

So i have edit but have to errors
C:\Dokumente und Einstellungen\Administrator\Desktop\Objecte4.pwn(6 9) : error 004: function "PlayerToPoint" is not implemented
C:\Dokumente und Einstellungen\Administrator\Desktop\Objecte4.pwn(8 3) : error 004: function "PlayerToPoint" is not implemented
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.




public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/open", true)==0)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, "Night", true)) return SendClientMessage(playerid, 0x33AA33AA,"Du hast hier keinen Zutritt");
if(!PlayerToPoint(15.0, playerid, -489.154602, -562.762573,15.29))
{
return 1;
}
MoveObject(BurnPH_gate,-489.154602, -562.762573, 20.368092,4);
return 1;
}


if (strcmp(cmdtext, "/close", true)==0)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, "Night", true)) return SendClientMessage(playerid, 0x33AA33AA,"Du hast hier keinen Zutritt");
if(!PlayerToPoint(15.0, playerid,-489.138458, -562.767883,15.29))
{
MoveObject(BurnPH_gate,-489.138458, -562.767883, 27.261347,4);
return 1;
}
}
return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)