27.10.2013, 00:46
HELP !!!
How to create Teleport ??
Help Me Please !!!
How to create Teleport ??
Help Me Please !!!
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;
}
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;
}
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; }
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. |
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;
}