24.04.2011, 00:05
Anyone can post a Ae Tutorial How to Create A Teleport Refusal Of Dollars. Or Pawn Helping Cause I Need To Make A Teleport and I can not. Thanks.
AddPlayerClass(0,1133.0504,-2038.4034,69.1000,47.4233,0,0,0,0,0,0); //
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, 1133.0504, -2038.4034, 69.1000); SendClientMessage(playerid, 0xFF0000FF, "You has been teleported"); return 1; } return 0; }
Fast explained:
Go in game and type /save then you do /Q and open "Documents / GTA San Andreas User Files / SAMP / savedpositions.txt" and it should look like: Код:
AddPlayerClass(0,1133.0504,-2038.4034,69.1000,47.4233,0,0,0,0,0,0); // then to the command Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, 1133.0504, -2038.4034, 69.1000); SendClientMessage(playerid, 0xFF0000FF, "You has been teleported"); return 1; } return 0; } |
AddPlayerClass(0,1133.0504,-2038.4034,69.1000,47.4233,0,0,0,0,0,0); //
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, 1133.0504, -2038.4034, 69.1000); SetPlayerFacingAngle(playerid,47.4233); SendClientMessage(playerid, 0xFF0000FF, "You has been teleported"); return 1; } return 0; }