help with pos teles
#9

OnPlayerCommandText(playerid,cmdtext[])
{

if(!strcmp("/tankdm",cmdtext,true))
{
SetPlayerPos(playerid,2320.4558,568.2838,7.7802)
return 1;
}


}

SetPlayerPos is a function that like this:

SetPlayerPos(#idofplayer#,x,y,z);

And, AddPlayerClass is like this:

AddPlayerClass(#skinid#,x,y,z,#theangle(where the player look to)#,weapon1,ammo_of_weapon1,weapon2,ammo_of_weapo n2,weapon3,ammo_of_weapon3);

And, to help u easier to tele, i am going to give u an example.

U have a script like this:

AddPlayerClass(2,10.5423,20.3847,11.203948,0,32,999,0,0,0,0);

Now, we have to copy the underlined texts, and put it into this:

SetPlayerPos(playerid,10.5423,20.3847,11.203948);

Sooooo simple, isn't it?

Hopez helped u!
Reply


Messages In This Thread
help with pos teles - by billyho - 19.03.2009, 10:46
Re: help with pos teles - by MenaceX^ - 19.03.2009, 10:52
Re: help with pos teles - by 56avenue - 19.03.2009, 10:52
Re: help with pos teles - by billyho - 19.03.2009, 12:03
Re: help with pos teles - by mascii - 19.03.2009, 12:20
Re: help with pos teles - by billyho - 19.03.2009, 20:14
Re: help with pos teles - by Jack_Fox - 19.03.2009, 23:01
Re: help with pos teles - by Egypt1123 - 23.09.2009, 07:41
Re: help with pos teles - by virspector - 23.09.2009, 10:27

Forum Jump:


Users browsing this thread: 1 Guest(s)