23.09.2009, 10:27
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!
{
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!