how to add objects in my server ? -
Craker - 16.05.2013
i want add those object in my server
Код:
CreateObject(19450, 3460.79, -2769.31, 1054.58, 0.00, 0.00, 270.36);
CreateObject(19450, 3469.72, -2768.99, 1054.58, 0.00, 0.00, 270.36);
CreateObject(19450, 3470.26, -2741.03, 1054.58, 0.00, 0.00, 270.36);
CreateObject(19450, 3460.62, -2741.11, 1054.58, 0.00, 0.00, 270.36);
CreateObject(19450, 3451.36, -2741.16, 1054.58, 0.00, 0.00, 270.36);
CreateObject(19450, 3441.48, -2744.78, 1054.58, 0.00, 0.00, 0.95);
Re: how to add objects in my server ? -
Hargrave - 16.05.2013
You shall put them in OnGameModeInit. For you it will be like this:
public OnGameModeInit()
{
CreateObject(19450, 3460.79, -2769.31, 1054.58, 0.00, 0.00, 270.36);
CreateObject(19450, 3469.72, -2768.99, 1054.58, 0.00, 0.00, 270.36);
CreateObject(19450, 3470.26, -2741.03, 1054.58, 0.00, 0.00, 270.36);
CreateObject(19450, 3460.62, -2741.11, 1054.58, 0.00, 0.00, 270.36);
CreateObject(19450, 3451.36, -2741.16, 1054.58, 0.00, 0.00, 270.36);
CreateObject(19450, 3441.48, -2744.78, 1054.58, 0.00, 0.00, 0.95);
return 1;
}
For more information about it, please take a look at
SA-MP Wiki about CreateObject.