SA-MP Forums Archive
Need help with objects . - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with objects . (/showthread.php?tid=86181)



Need help with objects . - kaiks - 12.07.2009

I made this with MTA, and converted it to this :

Код:
CreateObject(1684, 2509.211914, -1672.105591, 13.972688, 0.0, 0.0, 281.25); 	 // object
CreateObject(1632, 2504.10376, -1670.926636, 13.315081, 0.0, 0.0, 281.25); 	 // object (2)
CreateObject(3524, 2507.359863, -1667.303833, 13.298269, 0.0, 0.0, 269.99997); 	 // object (3)
CreateObject(3524, 2505.716064, -1675.430054, 13.159315, 0.0, 0.0, 292.49997); 	 // object (4)
But i have a problem, where i put this code so it would work ?


Re: Need help with objects . - Gergo1352 - 12.07.2009

pawn Код:
public OnGameModeInit()
{

// PUT YOUR CODE HERE

return 1;
}
But you wrote your question wrong place.

You should write here:
http://forum.sa-mp.com/index.php?board=10.0


Re: Need help with objects . - kaiks - 12.07.2009

But what's the file name where i put it ?


Re: Need help with objects . - Gergo1352 - 12.07.2009

You have to open your own gamemode or filterscript with Pawno.

Format: filename.pwn

But I don't know what is the name of your gamemode.

If you don't know, then open server.cfg and check it on the gamemode line.


Re: Need help with objects . - kaiks - 12.07.2009

echo Executing Server Config...
lanmode 0
rcon_password idonttellyou
maxplayers 32
port 7777
hostname Eesti roleplay .
gamemode0 Wasted 1
filterscripts adminspec vactions
announce 1
query 1
weburl www.sa-mp.com
anticheat 0



Re: Need help with objects . - kaiks - 12.07.2009

I downloaded it from here


Re: Need help with objects . - Gergo1352 - 12.07.2009

Then open Wasted.pwn with pawno.exe.


Re: Need help with objects . - kaiks - 12.07.2009

do you have msn ? then it's better to talk


Re: Need help with objects . - Gergo1352 - 12.07.2009

Yes, but my MSN address is private. Sorry.

So. Open pawno.exe which is in the pawno folder, open Wasted.pwn which is probably in your gamemodes folder. Find OnGameModeInit and add your code to it.


Re: Need help with objects . - kaiks - 12.07.2009

public OnGameModeInit()
lsasjad = CreateObject(1684, 2509.211914, -1672.105591, 13.972688, 0.0, 0.0, 281.25); // object
lsmunasari = CreateObject(1632, 2504.10376, -1670.926636, 13.315081, 0.0, 0.0, 281.25); // object (2)
lskakka = CreateObject(3524, 2507.359863, -1667.303833, 13.298269, 0.0, 0.0, 269.99997); // object (3)
lsarrja = CreateObject(3524, 2505.716064, -1675.430054, 13.159315, 0.0, 0.0, 292.49997); // object (4)
housegate = CreateObject(971,1002.869567,-644.128601,123.575851,0.000000,0.000000,205.454116 ); // Natees house gate
lspdgate = CreateObject(971, 1588.5617, -1638.1036, 12.7200, 0, 0, 0); //LSPD 1
desk = CreateObject(2634,250.690734,63.395851,1003.640625 ,0.000000,0.000000,268.000000); // /olspddesk

those first 4 r mine codes