>>> Adding Objects Please Help! <<<
#1

Ok, How Do I Add Objects/ Pickups To My SA-MP Server? Do I Use A Command In SAMP_Debug?
Do I Delete Some Stuff, Do I Even Need SA-MP Debug For This? And Yes, I HAVE READ
THAT LIL' WIKI PAGE THAT TELLS YOU HOW TO DO IT. I Don't Get It! If Someone Can Help
Me, I Would Be VERY VERY VERY Thankful. I Know How To:

* Add Cars
* Add Player Class
* Edit Game Mode With Pawno
* Make Help Command
* Make Teleport Command
* Add Filter-Scripts
Reply
#2

You can use Debug to get the pickups' positions. Just save the PlayerClass and use its X- Y- and Z-value for the pickup.
Hope I could help you a bit.

Marc_307
Reply
#3

To add cars just do /save when in a vehicle and you get a code like AddPlayerClass(102,889.7325,-1094.8798,24.0654,261.5727,0,0,0,0,0,0); and put it in lvdm.pwn to add that vehicle.

Same for /save on foot. add a code like AddPlayerClass(265,2030.4728,1543.2524,10.8203,95. 6421,0,0,0,0,0,0); //

Very hard at first to edit a gm with pawno, make sure you always got:

#include <a_samp> at the first line.

Adding a help command works with this under public OnPlayerCommandText(playerid, cmdtext[])

Код:
if (strcmp(cmdtext, "/help", true) == 0)
SendClientMessage(playerid, COLOR, "Check out /rules and /commands.");
Be sure to define the colors after the include <a_samp> line.

Teleport examle:
pawn Код:
if(strcmp(cmdtext, "/teleport", true) == 0) {
SetPlayerPos, x, y, z);
return 1;
If you scripted what you want, compile it, you either get errors or warning which you need to fix.
and add the script name to your server.cfg.
done.
Also check out the sa-mp scripting wiki.

Get the coordinates with /save or use a cheat.
I always use a cheat to get them. too many numbers on /save :/
Reply
#4

Quote:
Originally Posted by Marc_307
You can use Debug to get the pickups' positions. Just save the PlayerClass and use its X- Y- and Z-value for the pickup.
Hope I could help you a bit.

Marc_307
I Will Try That.
Thanks For Your Reply.
Reply
#5

Quote:
Originally Posted by Marc_307
You can use Debug to get the pickups' positions. Just save the PlayerClass and use its X- Y- and Z-value for the pickup.
Hope I could help you a bit.

Marc_307
Wait, How Can I Tell What The X Y And X Is?
Reply
#6

1. You choose a position in the Debug Mode
2. You type /save [comment]
3. Have a look at the savedpositions.txd
4. It will look like this: AddPlayerClass(0,2198.7981,2341.3992,10.6719,222.9 416,0,0,0,0,0,0); // [One of my saved positions ]
5. AddPlayerClass(skin,X,Y,Z,A,W1,W1A,W2,W2A,W3,W3A); [In my case it would be X=2198.7981, Y=2341.3992 and Z=10.6719]

Hope I could help you.

Marc_307
Reply
#7

Quote:
Originally Posted by Marc_307
1. You choose a position in the Debug Mode
2. You type /save [comment]
3. Have a look at the savedpositions.txd
4. It will look like this: AddPlayerClass(0,2198.7981,2341.3992,10.6719,222.9 416,0,0,0,0,0,0); // [One of my saved positions ]
5. AddPlayerClass(skin,X,Y,Z,A,W1,W1A,W2,W2A,W3,W3A); [In my case it would be X=2198.7981, Y=2341.3992 and Z=10.6719]

Hope I could help you.

Marc_307
LOL, Doesn't Make Sence But I Will Try To Figure It Out.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)