Guest User

vget by mgd for samp

a guest
Feb 28th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.99 KB | None | 0 0
  1. //by mgd and please do not remove the credits :)
  2. #include <a_samp>
  3. #include <sscanf2>
  4.  
  5. #define color LIGHTBLUE2
  6. CMD:vget(playerid, params[])
  7. {
  8.     if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
  9.     {
  10.         if(!strlen(params)) return
  11.         SendClientMessage(playerid, LIGHTBLUE2, "Usage: /vget [VehicleID]") &&//you can type any vehicle id
  12.         SendClientMessage(playerid, orange, "|- Will Bring the specified Vehicle to your Position -|");
  13.         new player1;
  14.         new string[128];
  15.         player1 = strval(params);
  16.         SendCommandToAdmins(playerid,"VGet");
  17.         new Float:x, Float:y, Float:z;
  18.         GetPlayerPos(playerid,x,y,z);
  19.         SetVehiclePos(player1,x+3,y,z);
  20.         SetVehicleVirtualWorld(player1,GetPlayerVirtualWorld(playerid));
  21.         format(string,sizeof(string),"|- You brought the Vehicle ID '%d' to your Position -|", player1);
  22.         return SendClientMessage(playerid,BlueMsg,string);
  23.     }
  24.     else return ErrorMessages(playerid, 1);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment