Advertisement
toribio

toribio

Sep 9th, 2008
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. //coloca no final do mode:
  2. stock Teleportar(playerid, Float:x, Float:y, Float:z, Float:a, interior, lugar[], color)
  3. {
  4.     new vehicleid = GetPlayerVehicleID(playerid);
  5.     SetPlayerInterior(playerid, interior);
  6.     if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
  7.     {
  8.         SetPlayerPos(playerid, x, y, z);
  9.     } else if(IsPlayerInVehicle(playerid, vehicleid))
  10.     {
  11.         SetVehiclePos(vehicleid, x, y, z);
  12.         SetVehicleZAngle(veiculo, a);
  13.     } else {
  14.         SetPlayerPos(playerid, x, y, z);
  15.     }
  16.     SetPlayerFacingAngle(playerid, a);
  17.     new pname[24], string[256];
  18.     GetPlayerName(playerid, pname, sizeof pname);
  19.     format(string, sizeof string, "%s foi para %s", pname, lugar);
  20.     SendClientMessageToAll(color, string);
  21.     return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement