Can I create my own include file for my custom map?
#2

It sure is possible, but not really the most efficient way I think...

- You could just create a custom function in your gamemode, place this at the bottom of the script so it's in the way and call that function at OnPlayerConnect.

pawn Код:
public OnPlayerConnect(playerid)
{
    CreatePlayerObjects(playerid);
    return 1;
}

CreatePlayerObjects(playerid)
{
    CreatePlayerObject(playerid, ......);
    CreatePlayerObject(playerid, ......);
    CreatePlayerObject(playerid, ......);
    CreatePlayerObject(playerid, ......);
    return 1;
}
You could also put your object inside a filterscript, so you can edit and reload the objects without restarting the server.
Reply


Messages In This Thread
Can I create my own include file for my custom map? - by terasss2 - 30.01.2015, 17:00
Re: Can I create my own include file for my custom map? - by Schneider - 30.01.2015, 17:08
Re: Can I create my own include file for my custom map? - by terasss2 - 30.01.2015, 17:15
Re: Can I create my own include file for my custom map? - by Schneider - 30.01.2015, 17:19

Forum Jump:


Users browsing this thread: 1 Guest(s)