Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:settele(playerid, params[])
- {
- if(IsPlayerAdmin(playerid)) // var can be changed // remove for stunt servers
- {
- GetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- SendClientMessage(playerid, COLOR_WHITE, "Teleport destination set!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " You are not authorized to use that command !"); // remove 4 stunt srvr
- }
- return 1;
- }
- CMD:gototele(playerid, params[])
- {
- if(IsPlayerAdmin(playerid)) // var can be changed // remove 4 stunt servers
- {
- if(TeleportDest[playerid][0] == 0.0 && TeleportDest[playerid][1] == 0.0 && TeleportDest[playerid][2] == 0.0) {
- SendClientMessage(playerid, COLOR_WHITE, " You need to mark your teleport first by using /settele");
- return 1;
- }
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- }
- else
- {
- SetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- }
- displayCenterHUDInfo(playerid, "~r~Teleporting!", 8);
- SetPlayerInterior(playerid,0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " You are not authorized to use that command !"); //remove 4 stunt srvr
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment