Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <sscanf2>
- #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
- #define dcmd2(%1,%2,%3) if ((strcmp((%3)[1], %1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
- dcmd_vget(playerid,params[])
- {
- if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
- {
- if(!strlen(params)) return
- SendClientMessage(playerid, LIGHTBLUE2, "Usage: /vget [VehicleID]") &&
- SendClientMessage(playerid, orange, "Function: Will Bring the specified Vehicle to your Position");
- new player1;
- new string[128];
- player1 = strval(params);
- SendCommandToAdmins(playerid,"VGet");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid,x,y,z);
- SetVehiclePos(player1,x+3,y,z);
- SetVehicleVirtualWorld(player1,GetPlayerVirtualWorld(playerid));
- format(string,sizeof(string),"|- You brought the Vehicle ID '%d' to your Position -|", player1);
- return SendClientMessage(playerid,BlueMsg,string);
- }
- else return ErrorMessages(playerid, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment