Is it, Any other function like it?
#1

Hey people.


Guys, I don't know what happened before few months!
My plate system is just spawning car without activating the timer or message etc...
See code:

This code is in OnPlayerText
pawn Код:
new Float:PosX, Float:PosY, Float:PosZ, Float:Angle;
                    GetPlayerPos(playerid, PosX, PosY, PosZ);
                    GetPlayerFacingAngle(playerid, Angle);
                    new Vehicleid;
                    Vehicleid = CreateVehicle(470, PosX+1, PosY+1, PosZ, Angle, 0,0, -1);
                    SetVehicleNumberPlate(Vehicleid, "tt");
                    PutPlayerInVehicle(playerid, Vehicleid, 0);
                    TimeSinceCarSpawned[playerid]=gettime();//we are storing "time"//<----
                    SendClientMessage(playerid, COLOR_BLUE, "You Have Spawned A Car");
1- i'm not going to vehicle
2. time not active
3. Message not apearing

after i // the plate ^^^^^^ all these will work

My version: 0.3x

is it disabled in 0.3x?
any other function same it but no bugs?
Reply
#2

Put the setplayervehiclenunverplate after putplayerinvehicle
Reply
#3

Ok i did it

now 3 problems again

1. the plate isn't in the vehicle 'tt' (most important)
2. it isn't giving the message
3. timer not activate

Now only 1 problem solved: it put me in vehicle
Reply
#4

The vehicle must respawn in order to take effects

pawn Код:
new Float:PosX, Float:PosY, Float:PosZ, Float:Angle;
                    GetPlayerPos(playerid, PosX, PosY, PosZ);
                    GetPlayerFacingAngle(playerid, Angle);
                    new Vehicleid;
                    Vehicleid = CreateVehicle(470, PosX+1, PosY+1, PosZ, Angle, 0,0, -1);
                    SetVehicleNumberPlate(Vehicleid, "tt");
            SetVehicleToRespawn(Vehicleid);
                    PutPlayerInVehicle(playerid, Vehicleid, 0);
                    TimeSinceCarSpawned[playerid]=gettime();//we are storing "time"//<----
                    SendClientMessage(playerid, COLOR_BLUE, "You Have Spawned A Car");
but i am not sure why the cleintmessage doesn't show, try make debugs?
Reply
#5

No bro, all is not working
when i remove the SetVehicleNumberPlate
all worked in this function

but when i add it all get destroyed again

1. the message of this function
2. It's timer isn't started

When i remove the SeVehicleNumberPlate
they works 100%
Reply
#6

Guys, sorry for this post, I've found problem is comming out from my VPlate plugin!
Lock topic!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)