17.02.2013, 17:38
pawn Код:
CMD:getcar(playerid, params[])
{
new vehicle, Float:x, Float:y, Float:z;
if(!CheckAdmin(playerid, ADMIN_LEVEL_1)) return NotAuthMSG(playerid);
if(sscanf(params,"i",vehicle)) return SyntaxMSG(playerid, "/getcar [vehicleid]");
if(vehicle == INVALID_VEHICLE_ID) return SCM(playerid, -1, "No such vehicle.");
GetPlayerPos(playerid, x, y, z);
SetVehiclePos(vehicle, x, y+4, z);
SetVehicleVirtualWorld(vehicle, GetPlayerVirtualWorld(playerid));
LinkVehicleToInterior(vehicle, GetInterior(playerid));
return 1;
}