Problem with car system
#1

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
Reply
#2

Up, need fast help pls
Reply
#3

Triplepost:

Any ideas please?
Reply
#4

Bump
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)