Hello, small question
#1

I just started to script last night and decided to make a server from scratch.
I've added $ icons(to enter bank) and House icons(to buy and enter houses) around the server, plus other icons.
How do i add script to those icons so that when i walk over it will say " /enter to enter bank" or /buyhouse to buy this house"
Also how would i script it so when i hit the command it then works, so that if i buy a house it will say "Owner: (name)"

Thanks for reading.
Reply
#2

that's a lot of work counting that you just started

for the pick-ups you have to check if someone picks it up (public OnPlayerPickupPickup) by having new mypickup; at the top of the script mypickup=CreatePickup(blahblahblah); and then in the callback
pawn Код:
if(pickupid == mypickup)
{
   //do something here i.e. GameTextForPlayer(playerid,"~g~Type ~y~/Enter~g~ to enter",5000,3);
}
as for the houses there exist quite a few property systems that are very hard to script/understand as a biginner.

I suggest that you start out with a simple TDM using the pawn tutorial at wiki.sa-mp.com like most people did :P
Reply
#3

haha okay thanks, i was fairly impressed with myself tho :P . i've done maybe 6 hours of scripting and i have, character spawn, cars set, icons around the city. /help menu thats got alot of info and its almost complete...and yea you get the picture. but i downloaded a housing script with max house of 100... now i want to know, is there a way to raise that number to say , 300 or 400 ?
Reply
#4

which one are you using? Most of them have #define MAX_PROPERTIES or #define MAX_HOUSES at the top of the script where you can change it to hoe many properties you have.
Reply
#5

ah, i used MAX_HOUSE...but i deleted the house system script now :P to many problems, and well im new to scripting, they made no sence lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)