SA-MP Forums Archive
were do i place this code? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: were do i place this code? (/showthread.php?tid=334359)



were do i place this code? - bashar0151 - 14.04.2012

i want to know were do i add object codes form a map editor to on my script?

e.g.


RemoveBuildingForPlayer(playerid, 1308, 37.7734, 2570.5625, 15.3047, 0.25);

CreateObject(18753, 443.42, 2493.66, 14.67, 0.00, 0.00, 0.00);

AddStaticVehicleVehicle(522, 393.4932, 2446.0149, 15.1392, 0.0000, -1, -1, 100);


Re: were do i place this code? - Derek_Westbrook - 14.04.2012

On this line I think.

Код:
public OnGameModeInit()
{
I hope its helped you!


Re: were do i place this code? - Kitten - 14.04.2012

pawn Код:
public OnGameModeInit()
{
     CreateObject(18753, 443.42, 2493.66, 14.67, 0.00, 0.00, 0.00);
     AddStaticVehicleVehicle(522, 393.4932, 2446.0149, 15.1392, 0.0000, -1, -1, 100);  
     return 1;
}

public OnPlayerConnect(playerid)
{
     RemoveBuildingForPlayer(playerid, 1308, 37.7734, 2570.5625, 15.3047, 0.25);
     return 1;
}