hello all ezt a teleport definiálást a modomba találtam gondoltam publikálom hátha valaki hasznát veszi
a MoD aljára
[pawn]stock FormatYMessage(playerid, text[])
{
new string[1280];
format(string, sizeof(string), \"%s {FF0000}Ide Teleportált {33CCFF}[ {00FF00}%s {33CCFF}]\", PlayerName(playerid), text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 1;
}
stock PlayerName(playerid)
{
new string[MAX_PLAYER_NAME];
GetPlayerName(playerid, string, sizeof(string));
return string;
}[/pawn]
Teleportokhoz:
[pawn]FormatYMessage(playerid, \"/drift1\");[/pawn]
pl egy tele:
[pawn]CMD:drift1(playerid,params[])
{
if(IsPlayerInDM[playerid] == 1) return SendClientMessage(playerid,COLOR_ULTRARED,\"Elõször lépj ki a Dm-bõl {FFFFFF}/exitdm\");
if(IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(GetPlayerVehicleID(playerid),-330.3562,1529.4213,75.3594);
FormatYMessage(playerid, \"/drift1\");
} else {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-330.3562,1529.4213,75.3594);
SetPlayerFacingAngle(playerid, 301.5956);
FormatYMessage(playerid, \"/drift1\");
}
return 1;
}[/pawn]
By Dj.BL3ND