Jump to content
  • 0

pomoc Port


11xam11

Dotaz

7 odpovědí na tuto otázku

Recommended Posts

  • 0

skús môj stock, ktorý používam na servere :d

 

http://pastebin.com/39nC3Lws

 

jeho použitie: TeleportPlayer(playerid, posX, posY, posZ, Rotacia, "kde sa portol, napr. do Las Venturas (/lv)");

Prosim te nejde mi to

#include

 

#if defined FILTERSCRIPT

 

stock TeleportPlayer(playerid, 305.3749, 1929.3649, 17.6350, 1, "/wtf") {

new string[256];

if (IsPlayerInAnyVehicle(playerid)) {

if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {

new vehicleid = GetPlayerVehicleID(playerid);

SetVehiclePos(vehicleid, X, Y, Z);

SetVehicleZAngle(vehicleid, Angle);

format(string, sizeof(string), "[ ! ] Hráč %s sa teleportoval %s !", PlayerName(playerid), str);

SCMTA(0xFFFFFFFF, string);

} else {

SCM(playerid, 0xFFFFFFFF, "Iba vodič auta sa môže teleportovať.");

}

} else {

SetPlayerPos(playerid, X, Y, Z);

SetPlayerFacingAngle(playerid, Angle);

format(string, sizeof(string), "[ ! ] Hráč %s sa teleportoval %s !", PlayerName(playerid), str);

SCMTA(0xFFFFFFFF, string);

}

return 1;

}

#endif

 

Link to comment
Share on other sites

  • 0

ehm. stock neupravuj, daj ten originalny a do prikazu daj TeleportPlayer(pozicie...);

 

 

Alebo skús môj Warp system :d v hre na nejakom mieste použiješ /warpcreate [ Názov warpu ], uloží sa ti a potom niekto iní môže použiť /warp [ Názov warpu ] a ho tam portne

http://pawno.cz/topic/46721-dynamic-warp-system/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...