View difference between Paste ID: BkZgBtfx and 3fYDRzdT
SHOW: | | - or go back to the newest paste.
1-
//by mgd and please do not remove the credits :)
1+
dcmd_vget(playerid,params[])
2-
#include <a_samp>
2+
3-
#include <sscanf2>
3+
4-
4+
	{
5-
#define color LIGHTBLUE2
5+
	    if(!strlen(params)) return
6-
CMD:vget(playerid, params[])
6+
		SendClientMessage(playerid, LIGHTBLUE2, "Usage: /vget [VehicleID]") &&
7
		SendClientMessage(playerid, orange, "Function: Will Bring the specified Vehicle to your Position");
8
	    new player1;
9-
    {
9+
		new string[128];
10-
        if(!strlen(params)) return
10+
	    player1 = strval(params);
11-
        SendClientMessage(playerid, LIGHTBLUE2, "Usage: /vget [VehicleID]") &&//you can type any vehicle id
11+
		SendCommandToAdmins(playerid,"VGet");
12-
        SendClientMessage(playerid, orange, "|- Will Bring the specified Vehicle to your Position -|");
12+
		new Float:x, Float:y, Float:z;
13-
        new player1;
13+
		GetPlayerPos(playerid,x,y,z);
14-
        new string[128];
14+
		SetVehiclePos(player1,x+3,y,z);
15-
        player1 = strval(params);
15+
		SetVehicleVirtualWorld(player1,GetPlayerVirtualWorld(playerid));
16-
        SendCommandToAdmins(playerid,"VGet");
16+
		format(string,sizeof(string),"|- You brought the Vehicle ID '%d' to your Position -|", player1);
17-
        new Float:x, Float:y, Float:z;
17+
		return SendClientMessage(playerid,BlueMsg,string);
18-
        GetPlayerPos(playerid,x,y,z);
18+
	}
19-
        SetVehiclePos(player1,x+3,y,z);
19+
	else return ErrorMessages(playerid, 1);
20-
        SetVehicleVirtualWorld(player1,GetPlayerVirtualWorld(playerid));
20+