Script getting? +rep -
Tixxt - 21.08.2015
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
Re: Script getting? +rep -
anassmaroc - 21.08.2015
Done
PHP код:
Tx[playerid] =-2749.3743;
Ty[playerid] =1248.9601;
Tz[playerid] =11.8703;
Ti[playerid] = 0;
and this
PHP код:
AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // CJ
Mean
PHP код:
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3,
Re: Script getting? +rep -
LOCS - 21.08.2015
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;
Re: Script getting? +rep -
Tixxt - 21.08.2015
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++
Re: Script getting? +rep -
Champagne - 21.08.2015
Im new to scripting but try adding a semicolon to line 1?
Re: Script getting? +rep -
SFA7X - 21.08.2015
Can you mention Tx, Ty and Tz defines?