[HELP]How to create Teleport +REP +REP1 -
WhiteAngels - 27.10.2013
HELP !!!
How to create Teleport ??
Help Me Please !!!
Respuesta: [HELP]How to create Teleport +REP +REP1 -
DanDRT - 27.10.2013
SetPlayerPos '-'
Re: [HELP]How to create Teleport +REP +REP1 -
WhiteAngels - 27.10.2013
EG
Re: [HELP]How to create Teleport +REP +REP1 -
Rockstar128 - 27.10.2013
Quote:
Originally Posted by WhiteAngels
EG 
|
Have a look over here.!!
https://sampforum.blast.hk/showthread.php?tid=397891
Re : [HELP]How to create Teleport +REP +REP1 -
Matnix - 27.10.2013
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;
}
Re: Re : [HELP]How to create Teleport +REP +REP1 -
WhiteAngels - 27.10.2013
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
Re : [HELP]How to create Teleport +REP +REP1 -
Matnix - 27.10.2013
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;
}
Re: Re : [HELP]How to create Teleport +REP +REP1 -
WhiteAngels - 27.10.2013
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.
|
Re: [HELP]How to create Teleport +REP +REP1 -
Another1 - 27.10.2013
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
Re: [HELP]How to create Teleport +REP +REP1 -
Mattakil - 27.10.2013
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