Problem with car system - 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: Problem with car system (
/showthread.php?tid=200831)
Problem with car system -
Arcanize - 19.12.2010
Hey, I have a problem with my car system.
I wanna define MAX_CARS_FOR_SERVER (it will define MAX Cars for server...(how many buyable cars can be in server).
Problem is: I don't know how to do put this into the script
But how it's gonna work?
- When the slots go full, then server says that: "MAX_CARS_FOR_SERVER is full, change MAX_CARS_FOR... value"
- When the slots are full then cars don't spawn. (because the limit is full)
Something like this: (but it's wrong
)
Код:
if(vid >= MAX_CARS_FOR_SERVER)
{
print("Auto limiit on tдis [4]");
SCM(playerid, COLOR_LIGHTRED, "Autolimiit on tдis [4 sхidukit]");
return 0;
}
Bad english
Thanks,
Arcanize
Re: Problem with car system -
Arcanize - 19.12.2010
Up, need fast help pls
Re: Problem with car system -
Arcanize - 19.12.2010
Triplepost:
Any ideas please?
Re: Problem with car system -
Arcanize - 19.12.2010
Bump
Re: Problem with car system -
Norck - 19.12.2010
I don't really get what do you want, but here:
pawn Код:
if(vid >= MAX_CARS_FOR_SERVER)
{
new str[32];
format(str,sizeof(str),"Vehicle limit is %d. No vehicles can be spawned",MAX_CARS_FOR_SERVER);
print(str);
SCM(playerid, COLOR_LIGHTRED, str);
return 0;
}
Hope it helps.