Script Help {Gates}
#1

Quote:

#include <a_samp>
#include <streamer>
new maing;
#define Admin 0xFF0000FF
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Multiple Gates ");
print("--------------------------------------\n");
maing = CreateDynamicObject(2938, 1100.59, 2293.79, 11.51, 0.00, 0.00, 0.00);//Main Gate For The Car
Create3DTextLabel("Server Founder Only",Admin ,0.35, 3.50, -1.43, 40.0, 0, 0); // info label
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{

if (strcmp("/fo", cmdtext, true, 10) == 0)
{

MoveDynamicObject(maing, 1100.59, 2293.79, 7.29, 0.00, 0.00, 0.00);
GameTextForPlayer(playerid, "~g~Founders Gate Opening~n~Browsing", 4000, 5);
return 1;
}
if (strcmp("/fc", cmdtext, true, 10) == 0)
{
MoveDynamicObject(maing, 1100.59, 2293.79, 11.51, 0.00, 0.00, 0.00);
GameTextForPlayer(playerid, "~g~Founders Gate Opening~n~Leaving", 4000, 5);
return 1;
}
if (strcmp("/ft", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,1097.90, 2293.19, 10.63);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid, "~g~Teleporting.", 4000, 5);
return 1;
}
return 0;
}

Please could some one look at this script and tell me go to get it working (PS. the commands are working its just the object's that won't move when the command is given and its the game with PointToPoint thingy)
Reply
#2

pawn Код:
maing = CreateDynamicObject(2938, 1100.59, 2293.79, 11.51, 0.00, 0.00, 0.00,-1,-1,-1,90);

//And so on.

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/fo", cmdtext, true, 10) == 0)
    {
        MoveDynamicObject(maing, 1100.59, 2293.79, 7.29,1.5);
        return GameTextForPlayer(playerid, "~g~Founders Gate Opening~n~Browsing", 4000, 5);
    }
    if (strcmp("/fc", cmdtext, true, 10) == 0)
    {
        MoveDynamicObject(maing, 1100.59, 2293.79, 11.51,1.5);
        return GameTextForPlayer(playerid, "~g~Founders Gate Opening~n~Leaving", 4000, 5);
    }
    if (strcmp("/ft", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid,1097.90, 2293.19, 10.63);
        SetPlayerInterior(playerid,0);
        return GameTextForPlayer(playerid, "~g~Teleporting.", 4000, 5);
    }
    return 0;
}
Reply
#3

Thank's so mutch its now working i would love you to work on my server when we get our new scripts on
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)