[FilterScript] Cali-Cars: Advanced vehicle ownership!
#21

good work, maybe add like a message onplayerstatechange, so the player knows if they've entered their own car or if another player enters they know its someone else's car.
Reply
#22

Quote:
Originally Posted by DeltaAirlines12
Посмотреть сообщение
good work, maybe add like a message onplayerstatechange, so the player knows if they've entered their own car or if another player enters they know its someone else's car.
I'll add that, thanks.

Quote:
Originally Posted by Baddark2131
Посмотреть сообщение
/squeal is to tow the car automatically to where you gave /park.
/squeal? Really? Why do you need to tow it?

I'm not adding it, however, you can add it yourself.
Reply
#23

You can add a color system ... when you buy a car, you can choose the color aswell. How about that ?

ps: It`s kinda 'creepy' ... everytime I relog, my car colour changes ...
Reply
#24

Quote:
Originally Posted by antonio112
Посмотреть сообщение
You can add a color system ... when you buy a car, you can choose the color aswell. How about that ?

ps: It`s kinda 'creepy' ... everytime I relog, my car colour changes ...
Weird.. Tuning saves on disconnect, and my car colour doesn't change.

Do you have any scripts that's preventing it?

Did you mod the vehicle yet? (This may be the problem.)
Reply
#25

Quote:
Originally Posted by California
Посмотреть сообщение
Weird.. Tuning saves on disconnect, and my car colour doesn't change.

Do you have any scripts that's preventing it?

Did you mod the vehicle yet? (This may be the problem.)
No, I just bought the car, drove it few mins and did /park to test if it saves after relog.

When I got back in game, my car color was blue ... after another relog, it was red.

I didn`t mod it ... do I have to ?

ps: I found a bug ... If you own a car and you get in another car, which is for sale, click Yes at the dialog, it says "You already have a car" and you can drive it ... even tough you don`t really own it but still ...
Reply
#26

I like it alot, here is a part i did not like. After vehicle is destroyed, it is re spawned but without a color or a mod u want on it, i assume u made it random color, after i re connect and come on server, everything is back on my vehicle, can you tell me why?

I got it to work so regular colors respawn after car is destroyed, now what about Paintjobs and compounts? is it possible to make them appear after car is destroyed?
Reply
#27

Quote:
Originally Posted by Rocketeer
Посмотреть сообщение
I like it alot, here is a part i did not like. After vehicle is destroyed, it is re spawned but without a color or a mod u want on it, i assume u made it random color, after i re connect and come on server, everything is back on my vehicle, can you tell me why?

I got it to work so regular colors respawn after car is destroyed, now what about Paintjobs and compounts? is it possible to make them appear after car is destroyed?
Yes.

1) Create a (boolean) variable called: Destroyed

2) Set the var to 'true' under OnVehicleDeath.

3) Check under OnVehicleSpawn if Destroyed is set to 'true'.

4) Load the components (code under OnPlayerConnect).
Reply
#28

Quote:
Originally Posted by Medal Of Honor team
View Post
really good!!!
yea Cool But Mehtab This Is Not For Medal Of Honor XD Its A Dm server
Reply
#29

Quote:
Originally Posted by antonio112
View Post
California, wouldn`t it be better if you would put in the first post, instead of "BLA BLA BLA CREATE FOLDER CARS AND TRUNK BLA BLA", if you would write without the caps lock, since, if I`m not wrong, I think it matter where you put capitals, if you put at all... examples it can be: CARS & TRUNK or Cars & Trunk or cars & trunk ... or it doesn`t matter ?

Anyway, you did a splendid job with this, congratz and thank you for release !
This guy was right, I had files CARS and TRUNK and my car file wasn't being created, but I changed it to Cars and Trunk, and it worked.

Also I just wrecked my black huntley, when it respawned it was red. I immediately /q returned to find it was black again. Think thats a little bug for ya. Also without modding 2nd time around when /setplate my car went from red to blue...After noticing a bug with dialogs not working in another FS i'm using i changed the order in my config and reset the server. I came back to find that I didn't own a car anymore even though there is a car file in my Cars folder..
Reply
#30

Quote:
Originally Posted by [LF]Mr.Lucci
View Post
This guy was right, I had files CARS and TRUNK and my car file wasn't being created, but I changed it to Cars and Trunk, and it worked.

Also I just wrecked my black huntley, when it respawned it was red. I immediately /q returned to find it was black again. Think thats a little bug for ya. Also without modding 2nd time around when /setplate my car went from red to blue...After noticing a bug with dialogs not working in another FS i'm using i changed the order in my config and reset the server. I came back to find that I didn't own a car anymore even though there is a car file in my Cars folder..
Quote:

Also I just wrecked my black huntley, when it respawned it was red. I immediately /q returned to find it was black again.

Quote:

Also without modding 2nd time around when /setplate my car went from red to blue...

Not a bug, you didn't mod the car.

Quote:

After noticing a bug with dialogs not working in another FS i'm using i changed the order in my config and reset the server. I came back to find that I didn't own a car anymore even though there is a car file in my Cars folder..

You fucked something up. Big time.

1) My tuning saves.
2) I can change it perfectly.
3) I found no bugs yet.

Anyways, I changed the caps, and if you found any real bugs, such as /setplate not working, tell me. This is an easy bug fix.

pawn Code:
VehicleInfo[playerid][colora] = 0;
VehicleInfo[playerid][colorb] = 0;
Reply
#31

hi im getting this errors when i compile it..
Код:
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1217) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1218) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1216) : warning 203: symbol is never used: "objective"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1216) : warning 203: symbol is never used: "boot"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1216) : warning 203: symbol is never used: "bonnet"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1216) : warning 203: symbol is never used: "doors"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1216) : warning 203: symbol is never used: "alarm"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1216) : warning 203: symbol is never used: "lights"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1216) : warning 203: symbol is never used: "engine"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1226) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1227) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1225) : warning 203: symbol is never used: "objective"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1225) : warning 203: symbol is never used: "boot"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1225) : warning 203: symbol is never used: "bonnet"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1225) : warning 203: symbol is never used: "doors"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1225) : warning 203: symbol is never used: "alarm"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1225) : warning 203: symbol is never used: "lights"
C:\Documents and Settings\Bogdan.NAMCO-04ACB0EB0\My Documents\Downloads\dealership.pwn(1225) : warning 203: symbol is never used: "engine"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
do you know why?
Reply
#32

Is a car dealership included?
Reply
#33

Hmmmm after i commented out the strtok i get the following errors.
(1201) : error 047: array sizes do not match, or destination array is too small
(1234) : error 047: array sizes do not match, or destination array is too small
(1383) : error 047: array sizes do not match, or destination array is too small


Error 1
(Line 119public OnPlayerCommandText(playerid, cmdtext[])
(Line 1199){
(Line 1200) new idx, tmp[128], cmd[128];
(Line 1201) cmd = strtok(cmdtext, idx);
(Line 1202) if(strcmp(cmd, "/trunk", true) == 0)
(Line 1202) {

Error 2
(Line 1231) if(strcmp(x_nr, "putgun", true) == 0)
(Line 1232) {
(Line 1233) if(TrunkOpen[Vehicle[playerid]] == 0) { SendClientMessage(playerid, 0xAFAFAFAA, " You must open the trunk first !"); return 1; }
(Line 1234) tmp = strtok(cmdtext, idx);
(Line 1235) if(!strlen(tmp)) { SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /trunk putgun [slot]"); return 1; }
(Line 1236) new slot = strval(tmp), weapon = GetPlayerWeapon(playerid);

Error 3
(Line 1380) if(strcmp(x_nr, "takegun", true) == 0)
(Line 1381) {
(Line 1382) if(TrunkOpen[Vehicle[playerid]] == 0) { SendClientMessage(playerid, 0xAFAFAFAA, " You must open the trunk first !"); return 1; }
(Line 1383) tmp = strtok(cmdtext, idx);
(Line 1384) if(!strlen(tmp)) { SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /trunk takegun [slot]"); return 1; }
(Line 1385) new slot = strval(tmp);
(Line 1386) if(slot < 1 || slot > 10) { SendClientMessage(playerid, 0xAFAFAFAA, " Slot can't be below 1 or above 10 !"); return 1; }

Do i just comment em out?
Reply
#34

Umm i dunno what i'm doing wrong but everysingle time i use a command from your scrip the server crashes, a while ago i couldn't even buy a car but now i can , i dunno what to do , if anyone knows how to fix this please help me -.-
Reply
#35

Awesome, but how can I buy a car :S?
Reply
#36

Oh, nevermind! I've found how .. But isn't there any way to add more vehicles, and move them to LV?
Reply
#37

is thare a way so you can own more then one car?
Reply
#38

Cmd for buying car? /buycar or ? i can't enter in car.
Reply
#39

Ok this FS is working well for me, When i buy anycar it says Thank you for buy blah blah, And when i type /find car it shows the checkpoint on the minimap when i reach at the checkpoint i can't find my car ;s. Its just me or?
Reply
#40

when i park my car the scipte saved the car pos,so the scipt dont load the saved cars!
please help
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)