Guest User

vehicle get

a guest
Feb 28th, 2013
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dcmd_vget(playerid,params[])
  2. {
  3.     if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
  4.     {
  5.         if(!strlen(params)) return
  6.         SendClientMessage(playerid, LIGHTBLUE2, "Usage: /vget [VehicleID]") &&
  7.         SendClientMessage(playerid, orange, "Function: Will Bring the specified Vehicle to your Position");
  8.         new player1;
  9.         new string[128];
  10.         player1 = strval(params);
  11.         SendCommandToAdmins(playerid,"VGet");
  12.         new Float:x, Float:y, Float:z;
  13.         GetPlayerPos(playerid,x,y,z);
  14.         SetVehiclePos(player1,x+3,y,z);
  15.         SetVehicleVirtualWorld(player1,GetPlayerVirtualWorld(playerid));
  16.         format(string,sizeof(string),"|- You brought the Vehicle ID '%d' to your Position -|", player1);
  17.         return SendClientMessage(playerid,BlueMsg,string);
  18.     }
  19.     else return ErrorMessages(playerid, 1);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment