04.11.2012, 00:51
Hey everyone, I've decied to try and teach myself how to do basic scripting and mapping. I'd just like to say that this is my first time every scripting and mapping anything, so I'm not 100% what I'm doing.
I tried to script a /help command but it doesn't seem to be working once I enter the game. My code is..
Also after watching a few ******* videos, i've tried mapping a simple bedroom interior with a few items inside of it. I use MTA to map and the video says click, create a new map, click locations and 24/7, zoom out away somewhere into the sky and select your interior. Then start building on it.
After I did this and saved the file, and coverted it to post on my script. But, I can't find my interior I created anywhere in the game. I'm also not sure how to make an /enter /exit command to get inside it. Here is the code to my interior i converted..
I tried to script a /help command but it doesn't seem to be working once I enter the game. My code is..
PHP код:
if (strcmp("/help", cmdtext, true, 5) == 0)
{
SendClientMessage (playerid, 0xFFFFFFFF, "Welcome to Dill's Testing Server HELP command!");
return 1;
}
return 0;
Also after watching a few ******* videos, i've tried mapping a simple bedroom interior with a few items inside of it. I use MTA to map and the video says click, create a new map, click locations and 24/7, zoom out away somewhere into the sky and select your interior. Then start building on it.
After I did this and saved the file, and coverted it to post on my script. But, I can't find my interior I created anywhere in the game. I'm also not sure how to make an /enter /exit command to get inside it. Here is the code to my interior i converted..
PHP код:
public OnFilterScriptExit()
{
CreateObject(14803,61.70000076,131.10000610,1266.90002441,0.00000000,0.00000000,0.00000000); //object(bdupsnew) (1)
CreateObject(1491,57.90000153,130.10000610,1264.90002441,0.00000000,0.00000000,272.00000000); //object(gen_doorint01) (1)
CreateObject(1491,65.69999695,130.19999695,1264.90002441,0.00000000,0.00000000,271.99951172); //object(gen_doorint01) (2)
CreateObject(1797,61.29999924,132.50000000,1264.90002441,0.00000000,0.00000000,0.00000000); //object(swank_bed_3) (1)
CreateObject(2180,61.40000153,126.80000305,1264.90002441,0.00000000,0.00000000,0.00000000); //object(med_office5_desk_3) (1)
CreateObject(1786,62.09999847,126.69999695,1265.69995117,0.00000000,0.00000000,178.00000000); //object(swank_tv_4) (1)
CreateObject(2344,61.20000076,127.00000000,1265.69995117,0.00000000,0.00000000,0.00000000); //object(cj_remote) (1)
CreateObject(1712,64.90000153,132.10000610,1264.90002441,0.00000000,0.00000000,276.00000000); //object(kb_couch05) (1)
CreateObject(2707,61.79999924,134.69999695,1268.80004883,0.00000000,0.00000000,0.00000000); //object(cj_light_fit) (1)
CreateObject(2289,58.40000153,133.89999390,1267.19995117,0.00000000,0.00000000,86.00000000); //object(frame_2) (1)
/*
Objects converted: 10
Vehicles converted: 0
Vehicle models found: 0
----------------------
In the time this conversion took to finish the US national debt has risen by about $195.50!
*/
return 1;