Teleport script?
#1

Hello, i wanna a teleport script i have one i just wanna like if someone teleport to somewhere i wanna to show like

(/sf) JimmyNeonHD (ID:0), Teleport to san Ferraro

are that's possible?

and i want to know how to make the player teleport with vehicle i can't my script like this

Quote:

{
if (strcmp("/sf", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -1513.7695, 795.8688, 7.1875, 31.263;
return 1;
}
return 0;
}

Reply
#2

Код:
if (strcmp("/sf", cmdtext, true, 10) == 0)
{
new string[128];
format(string, sizeof(string), "(Teleport)Player %s has teleported to San Fierro (/sf)", NAMEGET(playerid));
SendClientMessageToAll(COLOR_WHITE,string);
SetPlayerPos(playerid, -1513.7695, 795.8688, 7.1875, 31.2638 );
return 1;
}
return 0;
}
Reply
#3

pawn Код:
new
    iName[MAX_PLAYER_NAME+1],
    iStr[32];
GetPlayerName(playerid, iName, sizeof(iName));
format(iStr, sizeof(iStr), "%s (%i) Teleport to (/sf)", iName, playerid);
SendClientMessageToAll(-1, iStr);
Reply
#4

iManakoss i just need to corect your command here.

here is the right command

pawn Код:
if (strcmp("/sf", cmdtext, true, 10) == 0)
{
    new string[128];
    new pname[30];
    GetPlayerName(playerid,pname,sizeof(pname));
    format(string, sizeof(string), "(Teleport)Player %s(%d) has teleported to San Fierro (/sf)",pname,playerid);
    SendClientMessageToAll(COLOR_WHITE,string);
    SetPlayerPos(playerid, -1513.7695, 795.8688, 7.1875, 31.2638 );
    return 1;
}
Reply
#5

Quote:
Originally Posted by pds2012
Посмотреть сообщение
iManakoss i just need to corect your command here.

here is the right command

pawn Код:
if (strcmp("/sf", cmdtext, true, 10) == 0)
{
    new string[128];
    new pname[128];
    GetPlayerName(playerid,pname,sizeof(pname));
    format(string, sizeof(string), "(Teleport)Player %s(%d) has teleported to San Fierro (/sf)",pname,playerid);
    SendClientMessageToAll(COLOR_WHITE,string);
    SetPlayerPos(playerid, -1513.7695, 795.8688, 7.1875, 31.2638 );
    return 1;
}
Player name is up to 128 chars ?

/fail
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)