Is it, Any other function like it? -
GoldZoroGrab - 14.07.2013
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?
Re: Is it, Any other function like it? -
SwisherSweet - 15.07.2013
Put the setplayervehiclenunverplate after putplayerinvehicle
Re: Is it, Any other function like it? -
GoldZoroGrab - 15.07.2013
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
Re: Is it, Any other function like it? -
Kirollos - 15.07.2013
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?
Re: Is it, Any other function like it? -
GoldZoroGrab - 15.07.2013
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%
Re: Is it, Any other function like it? -
GoldZoroGrab - 15.07.2013
Guys, sorry for this post, I've found problem is comming out from my VPlate plugin!
Lock topic!!