Hello, small question - 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: Hello, small question (
/showthread.php?tid=94255)
Hello, small question -
balisticore - 28.08.2009
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.
Re: Hello, small question -
Yuryfury - 28.08.2009
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
Re: Hello, small question -
balisticore - 28.08.2009
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 ?
Re: Hello, small question -
Yuryfury - 29.08.2009
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.
Re: Hello, small question -
balisticore - 29.08.2009
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