Script getting? +rep
#1

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
Reply
#2

Done
PHP код:
  Tx[playerid] =-2749.3743;
    
Ty[playerid] =1248.9601;
    
Tz[playerid] =11.8703;
    
Ti[playerid] = 0
and this
PHP код:
   AddPlayerClass(01958.331343.1215.36269.1526362815000); // CJ 
Mean
PHP код:
AddPlayerClass(skinFloat:xFloat:yFloat:zFloat:Angleweapon1weapon1_ammoweapon2weapon2_ammoweapon3
Reply
#3

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;
Reply
#4

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++
Reply
#5

Im new to scripting but try adding a semicolon to line 1?
Reply
#6

Can you mention Tx, Ty and Tz defines?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)