15.04.2012, 22:28
how to make it that if it type /vget i get the vehicle id i have typed to my location.
i have it in dcmd
but i want it in zcmd
i have this here
i have it in dcmd
but i want it in zcmd
i have this here
pawn Код:
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);
}