[HELP]How to create Teleport +REP +REP1
#1

HELP !!!

How to create Teleport ??
Help Me Please !!!
Reply
#2

SetPlayerPos '-'
Reply
#3

EG
Reply
#4

Quote:
Originally Posted by WhiteAngels
Посмотреть сообщение
EG
Have a look over here.!!
https://sampforum.blast.hk/showthread.php?tid=397891
Reply
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/stunt", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, x, y, z);
        // X, Y, Z = Position where the player will be teleported.HTTP
        // You can get these coordinates by using sa-mp debug, and save onfoot pos (/save)
        return 1;
    }
    return 0;
}
Reply
#6

Quote:
Originally Posted by Matnix
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/stunt", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, x, y, z);
        // X, Y, Z = Position where the player will be teleported.HTTP
        // You can get these coordinates by using sa-mp debug, and save onfoot pos (/save)
        return 1;
    }
    return 0;
}
hmmmmm.....if i want to add SendClientMsgsToAll... how to add it
Reply
#7

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/stunt", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, x, y, z);
        // X, Y, Z = Position where the player will be teleported.HTTP
        // You can get these coordinates by using sa-mp debug, and save onfoot pos (/save)
        new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME); // GET PLAYER NAME
        format(string,sizeof string,"%s has teleported to (/stunt)",pName); // %s = THE PLAYER NAME
        SendClientMessageToAll(COLOR,string);
        return 1;
    }
    return 0;
}
Reply
#8

Quote:
Originally Posted by Matnix
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/stunt", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, x, y, z);
        // X, Y, Z = Position where the player will be teleported.HTTP
        // You can get these coordinates by using sa-mp debug, and save onfoot pos (/save)
        new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME); // GET PLAYER NAME
        format(string,sizeof string,"%s has teleported to (/stunt)",pName); // %s = THE PLAYER NAME
        SendClientMessageToAll(COLOR,string);
        return 1;
    }
    return 0;
}
Like Thiss but, i got a Warnings

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/f1track", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, 287,4192.0898,452.6725,59.8577,180.4098);
        new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME); // GET PLAYER NAME
        format(string,sizeof string,"[TELEPORT] %s has teleported to ~r~F1Track",pName); // %s = THE PLAYER NAME
        SendClientMessageToAll(0xFFFF00AA,string);
        return 1;
    }
    return 0;
}
Quote:

G:\GTA SA-MP Installers\DwTDM~RP v10\filterscripts\Teleport.pwn(93) : warning 202: number of arguments does not match definition
G:\GTA SA-MP Installers\DwTDM~RP v10\filterscripts\Teleport.pwn(93) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

Reply
#9

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/f1track", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, 287,4192.0898,452.6725,59.8577,180.4098);
        new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME); // GET PLAYER NAME
        format(string,sizeof (string),"[TELEPORT] %s has teleported to ~r~F1Track",pName); // %s = THE PLAYER NAME
        SendClientMessageToAll(0xFFFF00AA,string);
        return 1;
    }
    return 0;
}
try this
Reply
#10

Also be sure to check out the following URLs

https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/SendClientMessageToAll

Also, you should ****** "zcmd" it's a lot easier :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)