a Template Script with TUT i need.
#1

Okay i know im noob at Pawn.
I need a ... TELEPORT SCRIPT for my maps..
Thanks for helps.
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerPos
Reply
#3

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

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)