Vehicle license systeem [dutch] -
Crusher!! - 10.08.2009
Hi,
i have an problem with my license system
its dutch because if made it for my own server.
the problem is:
when i have not an license and i go in car
than must the server kicked me from the vehicle and send an message
but it does'nt how to fix?
Quote:
Originally Posted by Script
|
EDIT: Nobody?
Re: Vehicle license systeem -
Geekzor - 10.08.2009
i think ppl must see code ...
Re: Vehicle license systeem -
Crusher!! - 10.08.2009
who or what is ppl?
Re: Vehicle license systeem -
Rizard - 11.08.2009
ppl == people == mensen == ....
I'm also dutch so I'll try to catch up on this tomorow, it's to late now
grts riz
Re: Vehicle license systeem -
shady91 - 11.08.2009
lol did you really not no what ppl ment?
Re: Vehicle license systeem -
Crusher!! - 11.08.2009
xD i'm playing for 90% call of duty4/5 there we say normal words.
Re: Vehicle license systeem -
Rizard - 11.08.2009
Try to change this:
pawn Код:
if (CarID == Autos[l][l])
{
if (Licentie_Auto[playerid] == 0)
{
RemovePlayerFromVehicle(playerid);
T(playerid,"Autos");
return 1;
}
}
Into:
pawn Код:
if (CarID == 400 || CarID == 401) // try to get into a landstalker or a bravura (je kan de id's natuurlijk veranderen als je snel in een vehicle wil stappen dat dichtbij staat)
{
if (Licentie_Auto[playerid] == 0)
{
RemovePlayerFromVehicle(playerid);
T(playerid,"Autos");
return 1;
}
}
See if you get the message now, just for a test
If it doesn't show the message
The problem here is probebly that you didn't defined CarID... CarID should be something like
pawn Код:
CarID=GetPlayerVehicleID(playerid);
//en dan moet je niet de modelid's gebruike maar de vehicleid's
try to change this:
pawn Код:
if (CarID == Autos[l][l])
{
if (Licentie_Auto[playerid] == 0)
{
RemovePlayerFromVehicle(playerid);
T(playerid,"Autos");
return 1;
}
}
Into:
pawn Код:
if (CarID == Autos[l][l])
{
if (Licentie_Auto[playerid] == 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_BASIC,"Autos");
return 1;
}
}
Zie of je hier een bericht krijgt en of hij al dan niet uit de auto wordt gezet.
These are all tests , there are things in your? code that I've never used so ... just trying to help you debug
Grts Riz
PS: ben zelf een beetje de kluts kwijt over deze post xD probleme? gewoon melde
Re: Vehicle license systeem -
shady91 - 11.08.2009
Quote:
Originally Posted by Crusher!!
xD i'm playing for 90% call of duty4/5 there we say normal words.
|
so do i but i still no what ppl is i just that everyone would of none what it was.
Re: Vehicle license systeem -
Crusher!! - 11.08.2009
@ shady: Maybe.
@ rizard:
Line 272
pawn Код:
Findline findded your line 272
----------------------------
272 CarID = GetPlayerVehicleID(playerid);
-------------------------------------
Pawncc version 0.2x samp version 0.2x
Credits: M<warrior>M
maar moet ik verder alles IDs over typen naar dat. if (CarID == 0) || (CarID == 1)
Re: Vehicle license systeem -
Rizard - 11.08.2009
als het werkt wel

, maar ik moet morgen nog eens kijken, misschien moet je gwn een [] weglaten bij Auto[][]...
als je wilt dat het snel werkt, miss best zo oplossen dus
maar als carid dan al op die manier is gedefiлerd ... moet je de vehicleid's gebruiken ... niet de modelid's
om snel te weten te komen:
OnPlayerStateChange:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
new string[128];
format(string,128,"vehicle id: %d",CarID);
SendClientMessage(playerid,kleur,string);
}
EDIT: de id's die je dan krijgt dus gebruike
ik moet echt lere vroege te gaan slape, dees is ni goe om correcte posts te hebbe xD
splwl
Grts Riz