toribio

toribio

Sep 9th, 2008
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 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.     if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  5.     {
  6.         new vehicleid = GetPlayerVehicleID(playerid);
  7.         SetVehiclePos(vehicleid, x, y, z);
  8.         SetVehicleZAngle(vehicleid, a);
  9.         SetPlayerPos(playerid, x, y, z);
  10.         SetPlayerFacingAngle(playerid, a);
  11.         PutPlayerInVehicle(playerid, vehicleid, 0);
  12.     } else {
  13.         SetPlayerPos(playerid, x, y, z);
  14.         SetPlayerFacingAngle(playerid, a);
  15.     }
  16.     SetPlayerInterior(playerid, interior);
  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