Teleports.
#1

Hello everybody.
I have a question about teleports..
How to make it?

Please answer someone
Reply
#2

you should try searching
pawn Код:
if(strcmp(cmdtext, "/teleport", true)==0)
{
 new vehicleid = GetPlayerVehicleID(playerid);
 new State = GetPlayerState(playerid);
 if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
 {
  return SetVehiclePos(vehicleid,00.00,00.00,00.00), //cords
  GameTextForPlayer(playerid, "~w~Welcome to place!", 5000, 5); // Will says if you have teleported
 }
 SetPlayerPos(playerid,00.00,00.00,00.00); //cords
 GameTextForPlayer(playerid, "~w~Welcome to place!", 5000, 5); // Will says if you have teleported
return 1;
}
here is a good explanation by matuu which takes the vehicle with you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)