30.01.2015, 17:08
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.
You could also put your object inside a filterscript, so you can edit and reload the objects without restarting the server.
- 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;
}