Posts: 162
Threads: 58
Joined: Sep 2011
Reputation:
0
Hey guys.;
I have this in my tele script from the source i downloaded:
Tx[playerid] =1109.5314;
Ty[playerid] =1331.4094;
Tz[playerid] =15.8203;
Ti[playerid] = 0;
I want to change the numbers into the numbers from my /savepos but my /sp is looking like this?:
AddPlayerClass(293,-2749.3743,1248.9601,11.8703,53.2459,0,0,0,0,0,0); //
What do i need to copy into the script above from the/save code? in order to change the tele pos to my save pos
Posts: 104
Threads: 7
Joined: Jun 2014
Reputation:
0
easy boss AddPlayerClass(293,-2749.3743,1248.9601,11.8703,53.2459,0,0,0,0,0,0);
AddPlayerClass(293, X , Y , Z ,0,0,0,0,0,0);
So will look like that
Tx[playerid] =-2749.3743;
Ty[playerid] =1248.9601;
Tz[playerid] =11.8703;
Ti[playerid] = 0;
Posts: 162
Threads: 58
Joined: Sep 2011
Reputation:
0
Giving repp in a min..
One more question.
this is my tele script:
CMD:bumpercars(playerid,params[]) {
new string[256];
new kuldoneve[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
DestroyVehicle(GetPlayerVehicleID(playerid));
CarSpawner(playerid,539);
TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
tseconds[playerid] = 6;
format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
if(PlayerInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring);
vCount[playerid] = 1;
Tx[playerid] =-2560.5032;
Ty[playerid] =1363.4918;
Tz[playerid] =28.8554;
Ti[playerid] = 0;
format(telestring,43,"~r~< ~b~Bumbper ~w~car ~r~>");
GetPlayerName(playerid, kuldoneve, sizeof(kuldoneve));
format(string, sizeof(string), "{FF0000}[Palmstunting[V.1.0] Info]:{46BEE6}%s just teleported to Las Ventures Bumper Cars {FF0000} /bumpercarst!", kuldoneve, playerid);
SendClientMessageToAll(COLOR_GREEN, string);
return 1;
I can change everyting but when i change the command ( here cmd:bumpercars ) the tele does not work anymore? Help me and get repp++
Posts: 31
Threads: 7
Joined: Aug 2015
Reputation:
0
Im new to scripting but try adding a semicolon to line 1?
Posts: 16
Threads: 4
Joined: Aug 2013
Reputation:
0
Can you mention Tx, Ty and Tz defines?