a Template Script with TUT i need. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: a Template Script with TUT i need. (
/showthread.php?tid=97722)
a Template Script with TUT i need. -
Lynax - 16.09.2009
Okay i know im noob at Pawn.
I need a ... TELEPORT SCRIPT

for my maps..
Thanks for helps.
Re: a Template Script with TUT i need. -
Jakku - 16.09.2009
https://sampwiki.blast.hk/wiki/SetPlayerPos
Re: a Template Script with TUT i need. -
Lynax - 16.09.2009
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/teleport",true))
{
SetPlayerPos(playerid,0.0,0.0,10.0);
return 1;
}
return 0;
}
K thanks but what mean playerid?? :P
Re: a Template Script with TUT i need. -
uhumaham - 16.09.2009
Quote:
Originally Posted by |»Lynax«| Kerim™
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/teleport",true))
{
SetPlayerPos(playerid,0.0,0.0,10.0);
return 1;
}
return 0;
}
K thanks but what mean playerid?? :P 
|
It's the player which used /teleport command.. e.g you.
Re: a Template Script with TUT i need. -
Adil - 16.09.2009
Quote:
Originally Posted by |»Lynax«| Kerim™
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/teleport",true))
{
SetPlayerPos(playerid,0.0,0.0,10.0);
return 1;
}
return 0;
}
K thanks but what mean playerid?? :P 
|
The one who who will get the result.
Regards, Adil.